From 76027dea9c5878575baae3d818c5c4b0902abd0e Mon Sep 17 00:00:00 2001 From: Matej Sima Date: Mon, 27 May 2019 15:07:55 +0200 Subject: [PATCH] Rename CI variables for docker build & deploy --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 84fbf772c..a2ac7ebb5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -81,11 +81,11 @@ build-current-docker-image: stage: build <<: *docker script: - - docker build -t $CI_REGISTRY_IMAGE:latest -f ./docker/Dockerfile . - - docker save $CI_REGISTRY_IMAGE:latest > image + - docker build -t $LIGO_REGISTRY_IMAGE:latest -f ./docker/Dockerfile . + - docker save $LIGO_REGISTRY_IMAGE:latest > image artifacts: paths: - - $CI_REGISTRY_IMAGE:latest + - image # When a MR/PR is merged to master # take the previous build and publish it to Docker Hub @@ -95,7 +95,7 @@ build-and-publish-latest-docker-image: dependencies: - build-current-docker-image before_script: - - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD + - docker login -u $LIGO_REGISTRY_USER -p $LIGO_REGISTRY_PASSWORD script: - docker load -i image - docker push $CI_REGISTRY_IMAGE:latest