Skip to content

Commit

Permalink
chore: update sensible defaults for lagoon.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood committed May 13, 2024
1 parent 2930b6a commit b790000
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .lagoon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,35 @@ docker-compose-yaml: docker-compose.yml
project: drupal-opensearch

tasks:
# pre-rollout:
# - run:
# name: drush sql-dump
# command: mkdir -p /app/web/sites/default/files/private/ && drush sql-dump --ordered-dump --gzip --result-file=/app/web/sites/default/files/private/pre-deploy-dump.sql.gz || true
# service: cli
pre-rollout:
# - run:
# name: drush sql-dump
# # Takes a pre-rollout backup of production sites only.
# command: mkdir -p /app/web/sites/default/files/private/ && drush sql-dump --ordered-dump --gzip --result-file=/app/web/sites/default/files/private/pre-deploy-dump.sql.gz || true
# service: cli
# when: LAGOON_ENVIRONMENT_TYPE=="production"

post-rollout:
# Enable once config sync has been setup.
# - run:
# name: drush cim
# # Enable once config sync has been setup.
# command: drush -y cim
# service: cli
- run:
name: drush updb
command: drush -y updb
# This will only run if the database exists.
command: |
if [[ $(drush status --field=Database) == "Connected" ]]; then drush -y updb; fi
service: cli
- run:
name: drush cr
command: drush -y cr
service: cli

environments:
9.x:
# routes:
main:
cronjobs:
- name: drush cron
schedule: "*/15 * * * *"
- name: drush hourly cron
schedule: "M * * * *"
command: drush cron
service: cli

0 comments on commit b790000

Please sign in to comment.