From 660be6d7b5c7df88a5e3cc3474e3971a039019ee Mon Sep 17 00:00:00 2001 From: Hordur Freyr Yngvason Date: Fri, 16 Aug 2019 15:51:39 +0000 Subject: [PATCH] fix: Fix CI release job Firstly, the build command was missing some build arguments, but secondly, we should have been using the already built image as the job did before. --- .gitlab-ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 27f67e2..681d85b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -241,10 +241,9 @@ release-tag: - export ci_image="${CI_REGISTRY_IMAGE}" - export ci_image_tag=${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA} - echo "Using tag $ci_image_tag for image" - - docker build --cache-from ${ci_image}:latest - --tag ${ci_image}:$ci_image_tag - --tag ${ci_image}:latest - -f Dockerfile . + - docker pull "$BUILD_IMAGE_NAME" + - docker tag "$BUILD_IMAGE_NAME" $ci_image:latest + - docker tag "$BUILD_IMAGE_NAME" $ci_image:$ci_image_tag - docker push $ci_image:latest - docker push $ci_image:$ci_image_tag only: -- GitLab