From 9137bf1ce56527755a538a457847dcf337c15ba2 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Mon, 11 May 2020 11:46:49 -0400 Subject: Docker tag/push fix. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 90e46a7..75090f2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,5 +38,5 @@ build:dockerimage: - docker pull $CI_BUILD_IMAGE:latest || true - docker build --cache-from $CI_BUILD_IMAGE:latest -t $CI_BUILD_IMAGE:$CI_COMMIT_SHORT_SHA . - docker push $CI_BUILD_IMAGE:$CI_COMMIT_SHORT_SHA - - docker tag $CI_BUILD_IMAGE:$CI_COMMIT_SHORT_SHA $CI_BUILD_IMAGE:latest && git push $CI_BUILD_IMAGE:latest + - docker tag $CI_BUILD_IMAGE:$CI_COMMIT_SHORT_SHA $CI_BUILD_IMAGE:latest && docker push $CI_BUILD_IMAGE:latest - if [ -n "$CI_COMMIT_TAG" ]; then docker tag $CI_BUILD_IMAGE:$CI_COMMIT_SHORT_SHA $CI_BUILD_IMAGE:$CI_COMMIT_TAG && docker push $CI_BUILD_IMAGE:$CI_COMMIT_TAG; fi -- cgit v1.2.3