Commit da641bae authored by Kevin Daudt's avatar Kevin Daudt

docker-cli: create versioned images for git tags

parent 53fcf45b
Pipeline #86 passed with stage
in 1 minute and 20 seconds
......@@ -30,12 +30,17 @@ 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
- >
[ -n "$CI_COMMIT_TAG" ] &&
docker-push-image
$CI_PROJECT_NAME:latest-$ARCH $NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_TAG-$ARCH
upload-s390x:
extends: .upload
......@@ -59,6 +64,7 @@ create-manifest:
DOCKER_CLI_EXPERIMENTAL: enabled
only:
- master
- tags
tags:
- docker-alpine
before_script:
......@@ -69,3 +75,9 @@ create-manifest:
alpinelinux/$CI_PROJECT_NAME:latest-
s390x
x86_64
- >
[ -n "$CI_COMMIT_TAG" ] &&
docker-push-manifest alpinelinux/$CI_PROJECT_NAME:latest
alpinelinux/$CI_PROJECT_NAME:$CI_COMMIT_TAG-
s390x
x86_64
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