-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lagoon.yml
50 lines (48 loc) · 1.47 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
42
43
44
45
46
47
48
49
50
docker-compose-yaml: docker-compose.yml
project: government-of-yukon-recruitment-marketing-drupal
api: 'https://api.lagoon-prd.acromedia.com/graphql'
ssh: 'ssh.lagoon-prd.acromedia.com:22'
environment_variables:
git_sha: true
tasks:
pre-rollout:
- run:
name: drush sql-dump
command: |
mkdir -p /app/private/deploy-backup/ && drush sql-dump --ordered-dump --gzip --result-file=/app/private/deploy-backup/pre-deploy-dump.sql.gz || true
service: cli
post-rollout:
- run:
name: Sync DB and Files from production if we are not on production
command: |
# Only if we don't have a database yet
if tables=$(drush sqlq 'show tables;') && [ -z "$tables" ]; then
drush sql-sync @lagoon.production @self -y
drush rsync @lagoon.production:%files @self:%files -- --omit-dir-times --no-perms --no-group --no-owner --chmod=ugo=rwX
fi
service: cli
when: LAGOON_ENVIRONMENT_TYPE != "production"
- run:
name: drush cr
command: drush cr
service: cli
- run:
name: drush updb
command: drush updb -y
service: cli
- run:
name: drush cim
command: drush cim -y
service: cli
- run:
name: drush cr
command: drush cr
service: cli
environments:
master:
# routes:
cronjobs:
- name: drush cron
schedule: "M * * * *"
command: drush cron
service: cli