Commit 141b253e authored by Kevin Daudt's avatar Kevin Daudt

docker-cli: create versioned images for git tags

parent 53fcf45b
Pipeline #99 passed with stage
in 21 seconds
......@@ -30,12 +30,18 @@ build-x86_64:
stage: upload
only:
- master
- tags
before_script:
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
script:
- >
docker-push-image
$CI_PROJECT_NAME:latest-$ARCH $NAMESPACE/$CI_PROJECT_NAME:latest-$ARCH
$CI_PROJECT_NAME:latest-$ARCH $DOCKER_NAMESPACE/$CI_PROJECT_NAME:latest-$ARCH
- >
if [ -n "$CI_COMMIT_TAG" ]; then
docker-push-image
$CI_PROJECT_NAME:latest-$ARCH $DOCKER_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_TAG-$ARCH;
fi
upload-s390x:
extends: .upload
......@@ -59,6 +65,7 @@ create-manifest:
DOCKER_CLI_EXPERIMENTAL: enabled
only:
- master
- tags
tags:
- docker-alpine
before_script:
......@@ -66,6 +73,13 @@ create-manifest:
script:
- >
docker-push-manifest alpinelinux/$CI_PROJECT_NAME:latest
alpinelinux/$CI_PROJECT_NAME:latest-
$DOCKER_NAMESPACE/$CI_PROJECT_NAME:latest-
s390x
x86_64
- >
if [ -n "$CI_COMMIT_TAG" ]; then
docker-push-manifest alpinelinux/$CI_PROJECT_NAME:latest
DOCKER_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_TAG-
s390x
x86_64;
fi
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