Commit f86a473f authored by Kevin Daudt's avatar Kevin Daudt

docker-cli: create versioned images for git tags

parent 53fcf45b
Pipeline #110 passed with stage
in 23 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,13 +65,21 @@ create-manifest:
DOCKER_CLI_EXPERIMENTAL: enabled
only:
- master
- tags
tags:
- docker-alpine
before_script:
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
script:
- >
docker-push-manifest alpinelinux/$CI_PROJECT_NAME:latest
alpinelinux/$CI_PROJECT_NAME:latest-
docker-push-manifest $DOCKER_NAMESPACE/$CI_PROJECT_NAME:latest
$DOCKER_NAMESPACE/$CI_PROJECT_NAME:latest-
s390x
x86_64
- >
if [ -n "$CI_COMMIT_TAG" ]; then
docker-push-manifest $DOCKER_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_TAG
$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