diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-05-11 11:46:49 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-05-11 11:46:49 -0400 |
commit | 9137bf1ce56527755a538a457847dcf337c15ba2 (patch) | |
tree | 6eecfd5d00838102ddd5b9f0983ee308f20509c1 /.gitlab-ci.yml | |
parent | 858abaf0d45572bf692964c004f22b9053643316 (diff) |
Docker tag/push fix.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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 |