From 695d0f1b4fe8c47f48e3d1f925aff4345e118937 Mon Sep 17 00:00:00 2001 From: Tom Powell Date: Fri, 16 Nov 2018 05:39:29 +0000 Subject: [PATCH] Push latest tag --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5a423c1..629ad59 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,6 +25,8 @@ build: script: - docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD - docker build . -t $CI_REGISTRY_IMAGE:$CI_PIPELINE_IID + - docker tag $CI_REGISTRY_IMAGE:$CI_PIPELINE_IID $CI_REGISTRY_IMAGE:latest + - docker push $CI_REGISTRY_IMAGE:latest - docker push $CI_REGISTRY_IMAGE:$CI_PIPELINE_IID deploy: stage: deploy -- 2.20.1