Commit 45294a90 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed tag-based release in CI. [skip-ci]

parent 6d15005f
......@@ -143,19 +143,21 @@ release:
- docker pull $TEST_IMAGE
- docker tag $TEST_IMAGE $LATEST_IMAGE
- docker push $LATEST_IMAGE
except:
- /^dev-.*$/
when: manual
when:
- manual
only:
- branches
release_version:
stage: release
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlab-registry.mpcdf.mpg.de
- docker pull $LATEST_IMAGE
- docker tag $LATEST_IMAGE $CI_COMMIT_TAG
- docker tag $LATEST_IMAGE $STABLE_IMAGE
- docker pull $TEST_IMAGE
- docker tag $TEST_IMAGE $LATEST_IMAGE
- docker push $LATEST_IMAGE
- docker tag $TEST_IMAGE $STABLE_IMAGE
- docker push $STABLE_IMAGE
- docker push $CI_COMMIT_TAG
only:
- tags
Supports Markdown
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