Skip to content
Snippets Groups Projects
Commit 022f4bce authored by Domenico Giordano's avatar Domenico Giordano
Browse files

Promote procedure

parent d5f1731c
No related branches found
No related tags found
3 merge requests!32Qa,!31Qa,!29how to promote images
......@@ -20,7 +20,6 @@ stages:
- export IMAGE_TAG=`echo ${CI_COMMIT_TAG} | sed -e 's@.*-\(v[0-9\.]*\)@\1@'`;
- if [ "$CI_COMMIT_REF_NAME" == "qa" ]; then export LATEST=`echo ci-${CI_COMMIT_REF_NAME}-latest` ; export IMAGE_TAG=`echo "ci"-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}`; fi
- if [[ -z $DOCKERFILE ]]; then echo "ERROR variable DOCKERFILE is not defined "; exit 1; fi
- if [[ -z $CONTEXT ]]; then echo "ERROR variable CONTEXT is not defined "; exit 1; fi
- if [[ -z $IMAGE_NAME ]]; then echo "ERROR variable IMAGE_NAME is not defined "; exit 1; fi
- if [[ -z $IMAGE_TAG ]]; then echo "ERROR variable IMAGE_TAG is not defined "; exit 1; fi
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile ${DOCKERFILE} --destination ${IMAGE_NAME}:$IMAGE_TAG --destination ${IMAGE_NAME}:$LATEST
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment