You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 9, 2021. It is now read-only.
* [GOVCMS-4392]: Update the deploy process. (#41)
* Update the deploy process.
- Align the deploy process with the scaffold tooling approach.
GovCMS base images now include the scaffold-tooling dependency, this installs deploy
scripts to the /app/vendor/bin directory and will allow us to align approaches and
centrally manage updates to the deployment process.
* Update script names to match naming convention.
* Update the govcms commands in lagoon.yml.
- Change to match the naming convention of `govcms-[object]-[action]`
govCMS/scaffold-tooling#33
* Ensure command files are available.
- Pre-deploy scripts run in existing containers, the atomic govcms deploy
scripts may not always be available.
* Message was causing errors in Lagoon.
* Update README.md
* Update version.yml
command: "[ -f /app/vendor/bin/govcms-pre-deploy-db-update ] && /app/vendor/bin/govcms-pre-deploy-db-update || echo 'Pre Update databse is not available.'"
23
26
service: cli
24
-
shell: bash
25
-
- run:
27
+
shell: bash
28
+
-
29
+
run:
26
30
name: Snapshot the database and store
27
-
command: if [[ "$LAGOON_ENVIRONMENT_TYPE" = "production" ]]; then drush sql:dump --root=/app --gzip --result-file=/app/web/sites/default/files/private/backups/pre-deploy-dump.sql; fi
31
+
command: "[ -f /app/vendor/bin/govcms-db-backup ] && /app/vendor/bin/govcms-db-backup || echo 'Database backup is not available.'"
28
32
service: cli
29
33
shell: bash
30
-
- run:
34
+
-
35
+
run:
31
36
name: Snapshot the config and store
32
-
command: if [[ $(drush cex --root=/app sync -y --quiet --destination "$TMP"/config; echo "$?") = 0 ]]; then tar -czf /app/web/sites/default/files/private/backups/pre-deploy-config.tar.gz "$TMP"/config --remove-files; fi
37
+
command: "[ -f /app/vendor/bin/govcms-config-backup ] && /app/vendor/bin/govcms-config-backup || echo 'Config backup is not available.'"
33
38
service: cli
34
39
shell: bash
35
-
36
40
post-rollout:
37
41
- run:
38
-
name: Correct legacy drush alias if necessary
39
-
command: sed -i "s/%%PROJECT_NAME%%/\${env.LAGOON_PROJECT}/g" /app/drush/sites/govcms.site.yml
0 commit comments