Skip to content
Snippets Groups Projects
Verified Commit 68e7bc93 authored by Martin Weise's avatar Martin Weise
Browse files
parent 8f0b3dbe
Branches
No related tags found
No related merge requests found
......@@ -523,8 +523,8 @@ release-images:
stage: release
image: docker:${DOCKER_VERSION}-dind
variables:
BUILD_ARGS: --network=host --load
BAKE_ARGS: --allow=network.host --builder multiarch --load
BUILD_ARGS: --platform=$SUPPORTED_PLATFORMS --network=host --load
BAKE_ARGS: --allow=network.host --load
dependencies:
- clean-images
- test-analyse-service
......@@ -544,11 +544,9 @@ release-images:
- "echo ${CI_REGISTRY_PASSWORD} | docker login --username ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY_URL}"
- "docker logout ${CI_REGISTRY2_URL}"
- "echo ${CI_REGISTRY2_PASSWORD} | docker login --username ${CI_REGISTRY2_USER} --password-stdin ${CI_REGISTRY2_URL}"
- docker buildx ls
- docker buildx create --name multiarch --driver docker-container --use --bootstrap --platform=$SUPPORTED_PLATFORMS
script:
- docker buildx build $BUILD_ARGS --platform=linux/amd64,linux/arm64 -t dbrepo-core:build --target build ./lib/java/dbrepo-core
- docker buildx bake $BAKE_ARGS --platform=linux/amd64
- "docker buildx build $BUILD_ARGS -t dbrepo-core:build --target build ./lib/java/dbrepo-core"
- "docker buildx bake $BAKE_ARGS --platform=linux/amd64"
- REPOSITORY_URL=$CI_REGISTRY_URL make release-images
- REPOSITORY_URL=$CI_REGISTRY2_URL make release-images
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment