2022-08-21 15:29:42 +02:00
|
|
|
FROM node:alpine
|
2022-08-21 14:57:32 +02:00
|
|
|
|
2022-08-21 15:29:42 +02:00
|
|
|
# Install ssh client and git
|
|
|
|
RUN apk add --no-cache openssh-client git
|
|
|
|
|
|
|
|
RUN yarn global add semantic-release@18
|
|
|
|
|
2022-08-21 15:34:10 +02:00
|
|
|
RUN yarn global add @semantic-release/git @semantic-release/changelog
|
|
|
|
|
2022-08-21 15:29:42 +02:00
|
|
|
# Download public key for github.com
|
|
|
|
RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
|
2022-08-21 14:57:32 +02:00
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2022-08-21 15:29:42 +02:00
|
|
|
RUN --mount=type=ssh,id=default semantic-release
|