Commit d0970ca8 authored by SIMONIN Matthieu's avatar SIMONIN Matthieu
Browse files

Merge branch 'dev/docker_tag_latest' into 'master'

docker: also tag as latest

See merge request !6
parents 795bebb6 5687d6e8
Pipeline #194371 passed with stages
in 26 minutes and 31 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