-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.lagoon.yml
89 lines (87 loc) · 2.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
docker-compose-yaml: docker-compose.yml
project: 'silverback-template'
tasks:
post-rollout:
- run:
name: Install Drupal if necessary
command: |
if [[ $LAGOON_GIT_SAFE_BRANCH = lagoon-* ]] && ! drush status --fields=bootstrap | grep -q "Successful"; then
drush si minimal -y --existing-config --account-name admin --account-pass admin
drush php-script web/modules/custom/test_content/import.php
fi
service: cli
- run:
name: Run Drupal deploy tasks
# Source before https://github.com/uselagoon/lagoon/issues/574
command: source /home/.bashrc && drush -y deploy
service: cli
- run:
name: import translations from the ui
command: drush scr scripts/translations-import.php
service: cli
- run:
name: Create Keys for Simple OAuth if necessary
command: |
if [[ ! -f /app/web/sites/default/files/private/keys/private.key || ! -f /app/web/sites/default/files/private/keys/public.key ]]; then
mkdir -p /app/web/sites/default/files/private/keys
drush simple-oauth:generate-keys /app/web/sites/default/files/private/keys
fi
service: cli
- run:
name: Trigger a clean frontend build
# Source before https://github.com/uselagoon/lagoon/issues/574
command:
source /home/.bashrc && curl -X POST "$PUBLISHER_URL/___status/clean"
service: cli
environments:
prod:
routes:
- nginx:
- example.cms.amazeelabs.dev
- build:
- example.build.amazeelabs.dev
- preview:
- example.preview.amazeelabs.dev
cronjobs:
- name: drush cron
schedule: '*/15 * * * *'
command: drush cron
service: cli
- name: Frontend a frontend build
schedule: '0 * * * *'
command: drush silverback-gatsby:build main
service: cli
stage:
routes:
- nginx:
- stage-example.cms.amazeelabs.dev
- build:
- stage-example.build.amazeelabs.dev
- preview:
- stage-example.preview.amazeelabs.dev
cronjobs:
- name: drush cron
schedule: '*/15 * * * *'
command: drush cron
service: cli
- name: Frontend a frontend build
schedule: '15 * * * *'
command: drush silverback-gatsby:build main
service: cli
dev:
routes:
- nginx:
- dev-example.cms.amazeelabs.dev
- build:
- dev-example.build.amazeelabs.dev
- preview:
- dev-example.preview.amazeelabs.dev
cronjobs:
- name: drush cron
schedule: '*/15 * * * *'
command: drush cron
service: cli
- name: Frontend a frontend build
schedule: '30 * * * *'
command: drush silverback-gatsby:build main
service: cli