feat: add arm64 image #265

This commit is contained in:
Julian Tölle 2023-04-02 13:46:00 +02:00
parent 107a81412f
commit fc50d38535
2 changed files with 20 additions and 3 deletions

View file

@ -12,10 +12,14 @@ plugins:
- - "@semantic-release/exec"
- prepareCmd: |
# Build Docker Container
docker build \
# Build now but dont push; this validates that the image builds
# successfully and we can later re-use the cached build results to
# push in "publish" stage
docker buildx build \
-t apricote/listory \
--build-arg VERSION=${nextRelease.version} \
--build-arg GIT_COMMIT=`git rev-parse HEAD` \
--platform=linux/amd64,linux/arm64 \
.
# Update version in Helm Chart
@ -35,8 +39,16 @@ plugins:
-e "s/apricote\/listory:.*/apricote\/listory:${nextRelease.version}/g" \
docker-compose.prod.yml
- - semantic-release-docker
- name: apricote/listory
publishCmd: |
# Build (with cache) & push Docker Images
docker buildx build \
-t apricote/listory:${nextRelease.version} \
-t apricote/listory:latest \
--build-arg VERSION=${nextRelease.version} \
--build-arg GIT_COMMIT=`git rev-parse HEAD` \
--platform=linux/amd64,linux/arm64 \
--push \
- - "@semantic-release/git"
- assets:
- CHANGELOG.md