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

#38 Prepare pipelines for scheduled ResetLocales

parent a21e3bd6
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ ResetLocales:
script:
- IFS=' ' read branch <<< ${CHAT_INPUT}
- echo "Branch ${branch}"
- if [[ ! -d /data/${branch}/app ]]; then branch=main; fi
- if [[ ! -d /data/${branch}/app ]]; then branch=${CI_COMMIT_REF_NAME}; fi
- cd /data/${branch}/app
- SANITIZED_BRANCH_NAME=$(echo ${branch} | sed -r 's/[/_]+/-/g')
- docker compose --project-name ${PROJECT_NAME}_${SANITIZED_BRANCH_NAME} exec php drush -y sql:query "truncate locales_location;"
......@@ -196,7 +196,7 @@ ResetLocalesCustom:
matrix: !reference [.customreferences, LanguageFiles]
script:
- IFS=' ' read branch <<< ${CHAT_INPUT}
- if [[ ! -d /data/${branch}/app ]]; then branch=main; fi
- if [[ ! -d /data/${branch}/app ]]; then branch=${CI_COMMIT_REF_NAME}; fi
- cd /data/${branch}/app
- SANITIZED_BRANCH_NAME=$(echo ${branch} | sed -r 's/[/_]+/-/g')
- docker compose --project-name ${PROJECT_NAME}_${SANITIZED_BRANCH_NAME} exec php drush -y locale:import ${LANG} ${FILE} --type=custom --override=all
......
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