with branches

This commit is contained in:
Kasper Juul Hermansen 2022-08-21 15:29:42 +02:00
parent d46369e6b8
commit 7a5dc5db8f
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
3 changed files with 15 additions and 5 deletions

View File

@ -1,2 +1,4 @@
release:
branches: ["main", "next"]
branches:
- "main"
- "next"

View File

@ -2,4 +2,6 @@
set -e
docker build -f $TMP/build_docker.Dockerfile .
export DOCKER_BUILDKIT=1
docker build --ssh default -f $TMP/build_docker.Dockerfile .

View File

@ -1,7 +1,13 @@
FROM node
FROM node:alpine
#RUN npx semantic-release@18
# Install ssh client and git
RUN apk add --no-cache openssh-client git
RUN yarn global add semantic-release@18
# Download public key for github.com
RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
COPY . .
RUN npx semantic-release@18
RUN --mount=type=ssh,id=default semantic-release