Commit 573eddab authored by Oliver Lippert's avatar Oliver Lippert

release-tag: Tag TEST_IMAGE as RELEASE_IMAGE (speed improvement)

parent d1366ff2
Pipeline #1845 passed with stage
in 49 seconds
stages:
- build
- release
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN lw-scm.de:5500
......@@ -19,12 +20,13 @@ build:
- docker build --pull -t $CONTAINER_TEST_IMAGE .
- docker push $CONTAINER_TEST_IMAGE
build-tag:
stage: build
release-tag:
stage: release
tags:
- docker
only:
- tags
script:
- docker build --pull -t $CONTAINER_RELEASE_IMAGE .
- docker pull $CONTAINER_TEST_IMAGE
- docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE
- docker push $CONTAINER_RELEASE_IMAGE
\ No newline at end of file
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