From 763ab60a527b75a731d51d8583bc37a07d39b661 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Wed, 30 Dec 2020 13:03:55 +0100 Subject: [PATCH] gitlab-ci-cd/drupal#1 Testing --- test-and-deploy.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test-and-deploy.yml b/test-and-deploy.yml index 5e1496c..3879b7e 100644 --- a/test-and-deploy.yml +++ b/test-and-deploy.yml @@ -5,9 +5,6 @@ stages: - test - deploy -variables: - DBREQUIRED: "no" - .wait: script: - while [ ! -f /tmp/foo.txt ]; do echo "waiting..."; sleep 1; done @@ -58,6 +55,7 @@ variables: variables: GIT_STRATEGY: none script: | + DBREQUIRED="no" if [[ "$CI_COMMIT_REF_NAME" == "master" ]]; then DBREQUIRED="yes" elif [[ "$CI_COMMIT_REF_NAME" == *"[PULL_DB]"* ]]; then @@ -75,6 +73,12 @@ variables: fi fi fi + export $DBREQUIRED + if [[ "$DBREQUIRED" == "yes" ]]; then + echo "DB need to be pulled." + else + echo "No pulling required." + fi except: variables: - $CAE -- GitLab