Skip to content
Snippets Groups Projects
Verified Commit b5d01d7a authored by Olivier Benz's avatar Olivier Benz
Browse files

Update .gitlab-ci.yml

parent 5444e422
No related branches found
No related tags found
No related merge requests found
Pipeline #13907 passed
stages:
- build
- deploy
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: "/certs"
......@@ -27,7 +23,7 @@ variables:
- docker context create tls-environment
- docker buildx create --name multiarch-builder --use tls-environment
.before-script-deploy: &before-script-deploy
.before-script-build2: &before-script-build2
- |
if [[ ! -z "$CI_BUILD_PLATFORMS" ]]; then
export OS_ARCH=`echo $CI_BUILD_PLATFORMS | tr ' ' '\n' | \
......@@ -41,7 +37,7 @@ variables:
.buildx-build:
image: registry.gitlab.b-data.ch/docker/docker-buildx-qemu:latest
stage: build
stage: build1
services:
- docker:dind
before_script:
......@@ -50,20 +46,28 @@ variables:
.build:
image: registry.gitlab.b-data.ch/docker/docker-buildx-qemu:latest
stage: build
stage: build1
services:
- docker:dind
before_script:
- *before-script-all
.deploy:
.build2:
image: registry.gitlab.b-data.ch/docker/docker-buildx-qemu:latest
stage: deploy
stage: build2
services:
- docker:dind
before_script:
- *before-script-all
- *before-script-deploy
- *before-script-build2
stages:
- .pre
- build1
- build2
- test
- deploy
- .post
buildx:linux-amd64:
extends: .buildx-build
......@@ -148,7 +152,7 @@ build:linux-arm64v8:
- Dockerfile
build-manifest:multiarch:
extends: .deploy
extends: .build2
script:
- |
for i in $OS_ARCH; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment