Commit 695af4a9 authored by Kevin Daudt's avatar Kevin Daudt

gitlab-ci: add stage to create and upload manifest

With docker manifest you can create a single image that supports
multiple architectures.
parent 19f2d094
Pipeline #25 passed with stage
in 15 seconds
stages:
- build
- upload
- manifest
.build:
stage: build
......@@ -33,3 +34,18 @@ upload-s390x:
tags:
- docker-alpine
- s390x
create-manifest:
image: alpinelinux/docker-cli:latest-s390x
stage: manifest
variables:
DOCKER_CLI_EXPERIMENTAL: enabled
only:
- master
tags:
- docker-alpine
- s390x
script:
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- docker manifest create --amend alpinelinux/docker-cli:latest alpinelinux/docker-cli:lastest-s390x
- docker manifest push --purge alpinelinux/docker-cli:latest
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment