From 91e304b4b210664d096a982dc8a00450908771ad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrgen=20Haas?= <juergen.haas@lakedrops.com>
Date: Tue, 31 Mar 2020 19:26:45 +0200
Subject: [PATCH] Do not execute any of those tasks if variable $CAE is
 provided because that should then only trigger config collection

---
 test-and-deploy.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test-and-deploy.yml b/test-and-deploy.yml
index a57ace0..a50648c 100644
--- a/test-and-deploy.yml
+++ b/test-and-deploy.yml
@@ -80,6 +80,7 @@ stages:
       - tags
     variables:
       - $CI_COMMIT_MESSAGE =~ /^Merge tag /i
+      - $CAE
 
 .dumpdb:
   stage: build
@@ -105,6 +106,7 @@ stages:
       - tags
     variables:
       - $CI_COMMIT_MESSAGE =~ /^Merge tag /i
+      - $CAE
 
 .importdb:
   stage: prepare
@@ -130,6 +132,7 @@ stages:
       - tags
     variables:
       - $CI_COMMIT_MESSAGE =~ /^Merge tag /i
+      - $CAE
   dependencies:
     - 'Build Site'
     - 'Download DB'
@@ -153,6 +156,7 @@ stages:
       - $CI_COMMIT_MESSAGE =~ /^Merge tag /i
       - $CI_COMMIT_MESSAGE =~ /\[re-build-db\]/i
       - $FORCE_DB_UPDATE == "yes"
+      - $CAE
   dependencies:
     - 'Build Site'
 
@@ -177,6 +181,7 @@ stages:
       - tags
     variables:
       - $CI_COMMIT_MESSAGE =~ /^Merge tag /i
+      - $CAE
 
 .phpunit:
   stage: test
@@ -203,6 +208,7 @@ stages:
       - tags
     variables:
       - $CI_COMMIT_MESSAGE =~ /^Merge tag /i
+      - $CAE
 
 .behat:
   stage: test
@@ -227,6 +233,7 @@ stages:
       - tags
     variables:
       - $CI_COMMIT_MESSAGE =~ /^Merge tag /i
+      - $CAE
 
 .backstop:
   stage: test
@@ -249,6 +256,7 @@ stages:
       - tags
     variables:
       - $CI_COMMIT_MESSAGE =~ /^Merge tag /i
+      - $CAE
 
 .deploy:
   stage: deploy
@@ -267,3 +275,4 @@ stages:
       - tags
     variables:
       - $CI_COMMIT_MESSAGE =~ /^Merge tag /i
+      - $CAE
-- 
GitLab