-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #678 from City-of-Helsinki/update-configuration
Automatic update
- Loading branch information
Showing
10 changed files
with
142 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
15 | ||
16 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
source /init.sh | ||
|
||
if [ -f "../docker/openshift/preflight/preflight.php" ]; then | ||
echo "Running preflight checks ..." | ||
if ! php ../docker/openshift/preflight/preflight.php; then | ||
exit 1 | ||
fi | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
|
||
# Skip deployment script if ENV var is true | ||
if [ "$SKIP_DEPLOY_SCRIPTS" = "true" ]; then | ||
echo "SKIP_DEPLOY_SCRIPTS is true. Skipping the steps." | ||
return | ||
fi | ||
|
||
source /init.sh | ||
|
||
echo "Starting deploy: $(date)" | ||
|
||
# Populate deploy ID so 20-deploy.sh is skipped. | ||
# @todo Remove this once 20-deploy.sh is removed. | ||
set_deploy_id $OPENSHIFT_BUILD_NAME | ||
|
||
drush state:set system.maintenance_mode 1 --input-format=integer | ||
# Run pre-deploy tasks. | ||
# @see https://github.com/City-of-Helsinki/drupal-module-helfi-api-base/blob/main/documentation/deploy-hooks.md | ||
drush helfi:pre-deploy || true | ||
# Run maintenance tasks (config import, database updates etc) | ||
drush deploy | ||
# Run post-deploy tasks. | ||
# @see https://github.com/City-of-Helsinki/drupal-module-helfi-api-base/blob/main/documentation/deploy-hooks.md | ||
drush helfi:post-deploy || true | ||
# Disable maintenance mode | ||
drush state:set system.maintenance_mode 0 --input-format=integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
# Populate twig caches. | ||
if [ ! -d "/tmp/twig" ]; then | ||
drush twig:compile || true | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters