From f098d0a703b883e3c3880922261fef3e4552c9b1 Mon Sep 17 00:00:00 2001 From: adam balsam Date: Wed, 27 May 2026 14:17:45 -0400 Subject: [PATCH 1/2] Add config import cloud hook --- hooks/common/post-code-deploy/config-import.sh | 12 ++++++++++++ hooks/common/post-code-update/config-import.sh | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 hooks/common/post-code-deploy/config-import.sh create mode 100644 hooks/common/post-code-update/config-import.sh diff --git a/hooks/common/post-code-deploy/config-import.sh b/hooks/common/post-code-deploy/config-import.sh new file mode 100644 index 000000000..06f3028af --- /dev/null +++ b/hooks/common/post-code-deploy/config-import.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# +# Cloud Hook: Import config +# +# Run drush config:import in all environments post code deploy. + +# Map the script inputs to convenient names. +site=$1 +target_env=$2 +drush_alias=$site'.'$target_env + +drush @$drush_alias config:import --yes diff --git a/hooks/common/post-code-update/config-import.sh b/hooks/common/post-code-update/config-import.sh new file mode 100644 index 000000000..06f3028af --- /dev/null +++ b/hooks/common/post-code-update/config-import.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# +# Cloud Hook: Import config +# +# Run drush config:import in all environments post code deploy. + +# Map the script inputs to convenient names. +site=$1 +target_env=$2 +drush_alias=$site'.'$target_env + +drush @$drush_alias config:import --yes From 664958e906eebed2d2cf0fa794a72b982230e997 Mon Sep 17 00:00:00 2001 From: adam balsam Date: Wed, 27 May 2026 14:23:50 -0400 Subject: [PATCH 2/2] make executable --- hooks/common/post-code-deploy/config-import.sh | 0 hooks/common/post-code-update/config-import.sh | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 hooks/common/post-code-deploy/config-import.sh mode change 100644 => 100755 hooks/common/post-code-update/config-import.sh diff --git a/hooks/common/post-code-deploy/config-import.sh b/hooks/common/post-code-deploy/config-import.sh old mode 100644 new mode 100755 diff --git a/hooks/common/post-code-update/config-import.sh b/hooks/common/post-code-update/config-import.sh old mode 100644 new mode 100755