From 8789004f43f36c407d91ce9da8c07c2bcee88cc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Tue, 28 May 2019 18:41:18 +0200 Subject: [PATCH] build the remote-repo job only on master --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 66f6bf0f4..24a63b809 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,7 +17,7 @@ stages: .docker_build: &docker_build script: - docker build -t $LIGO_REGISTRY_IMAGE:latest -f ./docker/Dockerfile . - + .before_script: &before_script before_script: # Install dependencies @@ -80,6 +80,8 @@ remote-repo-job: #- opam install -y merlin #- opam install -y ocp-indent #- opam user-setup install + only: + - master # Run a docker build without publishing to the registry build-current-docker-image: @@ -94,7 +96,7 @@ build-current-docker-image: build-and-publish-latest-docker-image: stage: build_and_deploy_docker <<: *docker - <<: *docker_build + <<: *docker_build after_script: - docker login -u $LIGO_REGISTRY_USER -p $LIGO_REGISTRY_PASSWORD - docker push $LIGO_REGISTRY_IMAGE:latest