-
Notifications
You must be signed in to change notification settings - Fork 1
/
.lagoon.yml
54 lines (48 loc) · 1.82 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
51
52
53
54
docker-compose-yaml: docker-compose.yml
project: drupal-example-2
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
post-rollout:
- run:
name: IF no Drupal installed and we are not main branch, sync from main brancy
command: |
if tables=$(drush sqlq 'show tables;') && [ -z "$tables" ] && [[ "$LAGOON_GIT_BRANCH" != "main" ]]; then
# no drupal installed, sync DB from main branch
drush -y sql-sync @main @self
fi
service: cli
- run:
name: drush cim
command: drush -y cim
service: cli
- run:
name: drush updb
command: drush -y updb
service: cli
- run:
name: drush cr
command: drush -y cr
service: cli
environments:
9.x:
routes:
- nginx:
- drupal9.amazee.io:
annotations:
nginx.ingress.kubernetes.io/server-snippet: |
add_header X-BlackLivesMatter ⬛️⬛️⬛️⬛️⬛️⬛️;
add_header X-BlackLivesMatter ⬛️⬛️⬛️⬛️⬛️⬛️;
add_header X-BlackLivesMatter ⬛️⬛️⬛️⬛️⬛️⬛️;
add_header X-BlackLivesMatter ⬛️⬛️⬛️⬛️⬛️⬛️;
add_header X-BlackLivesMatter ⬛️⬛️⬛️⬛️⬛️⬛️;
add_header X-BlackLivesMatter ⬛️⬛️⬛️⬛️⬛️⬛️;
add_header X-Drupal "#Drupal9 on Lagoon #CelebrateDrupal";
cronjobs:
- name: drush cron
schedule: "*/15 * * * *"
command: drush cron
service: cli