Commit d710ab69 authored by Zachary Seguin's avatar Zachary Seguin

Add manual release job to tag as latest

parent 0aecc8cd
Pipeline #25 passed with stages
in 5 minutes and 20 seconds
......@@ -10,6 +10,7 @@ stages:
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
RELEASE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
LATEST_TAG: $CI_REGISTRY_IMAGE:latest
DOCKER_HOST: tcp://localhost:2375
DOCKER_DRIVER: overlay2
......@@ -38,3 +39,13 @@ release container:
- docker pull $IMAGE_TAG
- docker tag $IMAGE_TAG $RELEASE_TAG
- docker push $RELEASE_TAG
tag latest:
stage: release
script:
- docker pull $IMAGE_TAG
- docker tag $IMAGE_TAG $LATEST_TAG
- docker push $LATEST_TAG
when: manual
only:
- master
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