From d1c1f0c08ef71d15e32d0f7bb73c5c0812762c34 Mon Sep 17 00:00:00 2001 From: Matej Sima Date: Wed, 25 Sep 2019 13:14:41 +0200 Subject: [PATCH] Move docker_build to 'script' level in the CI --- .gitlab-ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 85e38064e..e5801ca4f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,8 +51,7 @@ stages: - docker:dind .docker_build: &docker_build - script: - - docker build -t $LIGO_REGISTRY_IMAGE:next -f ./docker/Dockerfile . + - docker build -t $LIGO_REGISTRY_IMAGE:next -f ./docker/Dockerfile . .before_script: &before_script before_script: @@ -96,8 +95,8 @@ remote-repo-job: build-current-docker-image: stage: build_docker <<: *docker - <<: *docker_build script: + <<: *docker_build - sh scripts/test_cli.sh except: - master @@ -108,8 +107,8 @@ build-current-docker-image: build-and-publish-latest-docker-image: stage: build_and_deploy_docker <<: *docker - <<: *docker_build script: + <<: *docker_build - docker login -u $LIGO_REGISTRY_USER -p $LIGO_REGISTRY_PASSWORD - sh scripts/test_cli.sh - docker push $LIGO_REGISTRY_IMAGE:next