Skip to content
Snippets Groups Projects
Verified Commit e6c7fdc0 authored by Martin Weise's avatar Martin Weise
Browse files
parent 68e7bc93
No related branches found
No related tags found
No related merge requests found
...@@ -523,8 +523,8 @@ release-images: ...@@ -523,8 +523,8 @@ release-images:
stage: release stage: release
image: docker:${DOCKER_VERSION}-dind image: docker:${DOCKER_VERSION}-dind
variables: variables:
BUILD_ARGS: --platform=$SUPPORTED_PLATFORMS --network=host --load BUILDX_BAKE_ARGS: --allow=network.host --load
BAKE_ARGS: --allow=network.host --load BUILDX_BUILD_ARGS: --load
dependencies: dependencies:
- clean-images - clean-images
- test-analyse-service - test-analyse-service
...@@ -544,9 +544,10 @@ release-images: ...@@ -544,9 +544,10 @@ release-images:
- "echo ${CI_REGISTRY_PASSWORD} | docker login --username ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY_URL}" - "echo ${CI_REGISTRY_PASSWORD} | docker login --username ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY_URL}"
- "docker logout ${CI_REGISTRY2_URL}" - "docker logout ${CI_REGISTRY2_URL}"
- "echo ${CI_REGISTRY2_PASSWORD} | docker login --username ${CI_REGISTRY2_USER} --password-stdin ${CI_REGISTRY2_URL}" - "echo ${CI_REGISTRY2_PASSWORD} | docker login --username ${CI_REGISTRY2_USER} --password-stdin ${CI_REGISTRY2_URL}"
- "docker buildx create --name multiarch --driver docker-container --use"
script: script:
- "docker buildx build $BUILD_ARGS -t dbrepo-core:build --target build ./lib/java/dbrepo-core" - "docker buildx build $BUILDX_BUILD_ARGS --platform=$SUPPORTED_PLATFORMS -t dbrepo-core:build ./lib/java/dbrepo-core"
- "docker buildx bake $BAKE_ARGS --platform=linux/amd64" - "docker buildx bake $BUILDX_BAKE_ARGS"
- REPOSITORY_URL=$CI_REGISTRY_URL make release-images - REPOSITORY_URL=$CI_REGISTRY_URL make release-images
- REPOSITORY_URL=$CI_REGISTRY2_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