From 8fdfb439a781c11d49abe5a004609cd9594061f3 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Sat, 28 Oct 2023 11:28:02 +0200 Subject: [PATCH] If first drush command during deployment fails, then run "drush cr" any try again --- test-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-and-deploy.yml b/test-and-deploy.yml index 8a8bb6c..d772987 100644 --- a/test-and-deploy.yml +++ b/test-and-deploy.yml @@ -595,7 +595,7 @@ Debug: - grep "users_data" /tmp/test.log || EC=$? - if [[ $EC -ne 0 ]]; then INITIAL="yes"; fi - rm /tmp/test.log >/dev/null 2>&1 || true - - if [[ "$INITIAL" == "no" ]]; then drush -y sset system.maintenance_mode 1; fi + - if [[ "$INITIAL" == "no" ]]; then drush -y sset system.maintenance_mode 1 || drush cr && drush -y sset system.maintenance_mode 1; fi - cd - - cd web/sites/default - rm files -- GitLab