mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 23:36:44 +02:00
build(docker): push amd64 image before overwriting manifest with both amd64 and arm64 platforms
This commit is contained in:
parent
89ae2b89fd
commit
30db307d70
1 changed files with 11 additions and 2 deletions
|
|
@ -80,7 +80,17 @@ docker-build-release:
|
|||
# configure BuildKit features that aren't enabled by default
|
||||
- docker buildx inspect --bootstrap
|
||||
script:
|
||||
# build multiplatform image for amd64 and arm64
|
||||
- docker buildx build
|
||||
--target production
|
||||
--secret id=maxmind-licence-key,env=MAXMIND_LICENCE_KEY
|
||||
--platform linux/amd64
|
||||
--file docker/production/Dockerfile
|
||||
--push
|
||||
--tag ${DOCKER_IMAGE_CASTOPOD}:${CP_VERSION}
|
||||
--tag ${DOCKER_IMAGE_CASTOPOD}:${CP_TAG}
|
||||
.
|
||||
# when --platform=linux/amd64,linux/arm64: amd64 image takes too long to be pushed as it needs to wait for arm64 to be built
|
||||
# --> build and push amd64 image first, then overwrite manifest after building arm64
|
||||
- docker buildx build
|
||||
--target production
|
||||
--secret id=maxmind-licence-key,env=MAXMIND_LICENCE_KEY
|
||||
|
|
@ -89,7 +99,6 @@ docker-build-release:
|
|||
--push
|
||||
--tag ${DOCKER_IMAGE_CASTOPOD}:${CP_VERSION}
|
||||
--tag ${DOCKER_IMAGE_CASTOPOD}:${CP_TAG}
|
||||
--progress=plain
|
||||
.
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue