drone-semantic-release/templates/build_docker.Dockerfile
kjuulh 6a38904af2
All checks were successful
continuous-integration/drone/push Build is passing
without copy
2022-08-21 16:14:03 +02:00

20 lines
504 B
Docker

FROM node:alpine
# Install ssh client and git
RUN apk add --no-cache openssh-client git
RUN yarn global add semantic-release@18
RUN yarn global add @semantic-release/git @semantic-release/changelog
# Download public key for github.com
RUN \
mkdir -p -m 0700 ~/.ssh \
&& ssh-keyscan github.com >> ~/.ssh/known_hosts \
&& ssh-keyscan git.front.kjuulh.io >> ~/.ssh/known_hosts
WORKDIR /src/app/
#RUN --mount=type=ssh,id=default semantic-release --no-ci
# run as cmd during pipeline, such easier