Skip to content
Snippets Groups Projects
Commit c89ce595 authored by jurgenhaas's avatar jurgenhaas
Browse files

#12 Add optional tasks to reset locales after a Drupal site deployment

parent 9550a5d8
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,14 @@ stages:
INITIALINSTALL="yes"
fi
echo "INITIALINSTALL=${INITIALINSTALL}" >> validation.env
RESETLOCALE="no"
if [[ "$CI_COMMIT_MESSAGE" == *"[RESET_LOCALE]"* ]]; then
RESETLOCALE="yes"
elif [[ "$RESET_LOCALE" == "yes" ]]; then
RESETLOCALE="yes"
fi
echo "RESETLOCALE=${RESETLOCALE}" >> validation.env
except:
variables:
- $CAE
......@@ -476,6 +484,9 @@ stages:
else
ascr drupal-config $HOST_NAME $SITE_NAME --extra-vars="DRUPAL_ARTEFACT_SRC=${PWD}" ${CAE}
fi
if [[ "$RESETLOCALE" == "yes" ]]; then
ascr drupal-reset-locale $HOST_NAME $SITE_NAME
fi
cache: {}
dependencies:
- 'Validate Environment'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment