Commit 1bc8ec12 authored by MANISH KUMAR's avatar MANISH KUMAR
Browse files

Merge branch 'automating-release-tag-push' into 'master'

Release automated tag push

See merge request !270
parents cbd3c02b 29fcdd14
Pipeline #47169 passed with stages
in 34 seconds
......@@ -138,6 +138,7 @@ azure_containerize:
variables:
SHA_IMAGE: ${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}:${CI_COMMIT_SHA}
LATEST_IMAGE: ${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}:latest
RELEASE_IMAGE: release-${CI_COMMIT_TAG}:${CI_PROJECT_NAME}-${CI_COMMIT_TAG}
extends:
- .azure_variables
before_script:
......@@ -179,6 +180,12 @@ azure_containerize:
- docker push ${AZURE_REGISTRY}.azurecr.io/$SHA_IMAGE
- docker tag $CI_REGISTRY_IMAGE/$SHA_IMAGE ${AZURE_REGISTRY}.azurecr.io/$LATEST_IMAGE
- docker push ${AZURE_REGISTRY}.azurecr.io/$LATEST_IMAGE
- |
if [ ! -z "$CI_COMMIT_TAG" ]; then
docker tag $CI_REGISTRY_IMAGE/$SHA_IMAGE ${AZURE_REGISTRY}.azurecr.io/$RELEASE_IMAGE
docker push ${AZURE_REGISTRY}.azurecr.io/$RELEASE_IMAGE
fi
only:
variables:
- $AZURE == 'true'
......
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