diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-05-11 11:51:19 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-05-11 11:51:19 -0400 |
commit | 64a0f1b3244498abb84376b0ee100e82d0a93517 (patch) | |
tree | 180df223409df778fc334a1e18b1ba9f5b6ee476 | |
parent | 9137bf1ce56527755a538a457847dcf337c15ba2 (diff) |
Tweak to image tag name.
-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 75090f2..badd82c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,4 +39,4 @@ build:dockerimage: - 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 && 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 + - if [ -n "$CI_COMMIT_TAG" ]; then docker tag $CI_BUILD_IMAGE:$CI_COMMIT_SHORT_SHA $CI_BUILD_IMAGE:${CI_COMMIT_TAG#docker-} && docker push $CI_BUILD_IMAGE:${CI_COMMIT_TAG#docker-}; fi |