From bff3d8f6b612acba487967d197891b08879ff073 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Tue, 12 Jul 2022 06:17:14 +0000 Subject: [PATCH] Tag image twice, push once --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7f5e60c..495318e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,5 @@ build_image: - echo $CI_REGISTRY_USER - echo $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - - docker build --no-cache -t $CI_REGISTRY/jafner/docker-calibre-web/docker-calibre-web:$CI_COMMIT_SHA . - - docker push $CI_REGISTRY/jafner/docker-calibre-web/docker-calibre-web:$CI_COMMIT_SHORT_SHA - - docker push $CI_REGISTRY/jafner/docker-calibre-web/docker-calibre-web:latest + - docker build --no-cache -t $CI_REGISTRY/jafner/docker-calibre-web/docker-calibre-web:$CI_COMMIT_SHA -t $CI_REGISTRY/jafner/docker-calibre-web/docker-calibre-web:latest . + - docker push $CI_REGISTRY/jafner/docker-calibre-web/docker-calibre-web --all-tags