From 5caec99d226f60c1a1eb333d34637fc47c5db4b8 Mon Sep 17 00:00:00 2001 From: Christian Boettcher <c.boettcher@fz-juelich.de> Date: Mon, 30 Aug 2021 14:37:23 +0200 Subject: [PATCH] manual variable checking to ensure proper job execution --- .gitlab-ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5243422..9829df0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -76,8 +76,8 @@ full-deploy-production: stage: deploy # only run when stable tag is assigned and the pipeline is triggered in the web UI only: - - tags && web - tags: [stable] + variables: + - ($CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_REF_NAME =~ "/^stable-/") environment: Production script: - echo "Starting the full production deployment." @@ -100,9 +100,8 @@ full-deploy-testing: stage: deploy # only run when master is updated and the pipeline is triggered in the web UI only: - - master && web - except: - - tags + variables: + - ($CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_REF_NAME == "master") environment: Testing script: - echo "Starting the full testing deployment." -- GitLab