From b7e0be0d84f5b1bad2c440a06233bcbc9e803fd6 Mon Sep 17 00:00:00 2001 From: FyloZ Date: Fri, 12 Feb 2021 22:18:16 -0500 Subject: [PATCH] Activation du stage package et deploy seulement sur la branche master --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1afc05c..bdbd55c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,6 +21,9 @@ build: package: stage: package needs: ['build'] + only: + refs: + - master variables: PACKAGE_CONTAINER_NAME: "cre_frontend_package" ARTIFACT_NAME: "ColorRecipesExplorer-frontend-$CI_PIPELINE_IID" @@ -45,6 +48,9 @@ deploy: stage: deploy image: alpine:latest needs: ['package'] + only: + refs: + - master variables: DEPLOYED_CONTAINER_NAME: "cre_frontend" before_script: