-
Notifications
You must be signed in to change notification settings - Fork 10
/
.lagoon.yml
41 lines (37 loc) · 1.22 KB
/
.lagoon.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
docker-compose-yaml: docker-compose.yml
project: drupalnext-base
tasks:
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:
- run:
name: drush updb
# This will only run if the database exists.
command: |
if [[ $(drush status --field=Database) == "Connected" ]]; then drush -y updb; fi
service: cli
shell: bash
# - run:
# name: drush cim
# # Enable once config sync has been setup.
# command: drush -y cim
# service: cli
- run:
name: drush cr
# This will only run if the database exists.
command: |
if [[ $(drush status --field=Database) == "Connected" ]]; then drush -y cr; fi
service: cli
shell: bash
environments:
main:
cronjobs:
- name: drush hourly cron
schedule: "M * * * *"
command: drush cron
service: cli