Commit 5687d6e8 authored by SIMONIN Matthieu's avatar SIMONIN Matthieu
Browse files

docker: also tag as latest

parent 795bebb6
Pipeline #194370 canceled with stages
in 27 seconds
......@@ -69,8 +69,11 @@ docker:
then
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
export DOCKER_IMAGE=${CI_REGISTRY_IMAGE}/tansiv:${CI_COMMIT_SHORT_SHA}
export DOCKER_IMAGE_LATEST=${CI_REGISTRY_IMAGE}/tansiv:latest
docker build -t ${DOCKER_IMAGE} .
docker push ${DOCKER_IMAGE}
docker tag ${DOCKER_IMAGE} ${DOCKER_IMAGE_LATEST}
docker push ${DOCKER_IMAGE_LATEST}
else
export DOCKER_IMAGE=tansiv:latest
docker build -t ${DOCKER_IMAGE} .
......
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