-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.lagoon.yml
More file actions
85 lines (79 loc) · 2.64 KB
/
.lagoon.yml
File metadata and controls
85 lines (79 loc) · 2.64 KB
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
docker-compose-yaml: docker-compose.yml
project: drupal-ch
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:
# If no DB, sync from Master branch.
name: If no Drupal installed - get database from Master
command: |
if [[ ${LAGOON_GIT_SAFE_BRANCH} != "master" ]] && ! drush status --fields=bootstrap | grep -q "Successful"; then
drush -y sql-sync @lagoon.master @self
fi
service: cli
shell: bash
- run:
name: drush updb
command: drush -y updb --cache-clear=0 || (drush cr && drush -y updb --cache-clear=0)
service: cli
- run:
name: drush cr
command: drush -y cr
service: cli
- run:
name: drush cim
command: drush -y cim
service: cli
- run:
name: drush webpack:build
command: if drush | grep -q "webpack:build"; then drush webpack:build; fi
service: cli
- run:
name: drush cr
command: drush -y cr
service: cli
# - run:
# name: Fast-forward tracking branches
# # During a deploy to prod, create a new local branch from the origin's
# # prod branch, then push that new branch to origin. Since the new local
# # branch name matches an existing branch name on origin, a fast-forward
# # merge will occur.
# command: |
# if [[ ${LAGOON_GIT_SAFE_BRANCH} == "prod" ]]; then
# git fetch origin prod:demo && git push origin demo || echo "Fast-forward of \"demo\" branch failed."
# fi
# service: cli
# shell: bash
environments:
master:
cronjobs:
- name: drush cron
schedule: "*/15 * * * *"
command: drush cron
service: cli
routes:
- varnish:
- drupal.ch:
tls-acme: 'true'
insecure: Redirect
hsts: max-age=31536000
- www.drupal.ch:
tls-acme: 'true'
insecure: Redirect
hsts: max-age=31536000
- drupal.li:
tls-acme: 'true'
insecure: Redirect
hsts: max-age=31536000
- www.drupal.li:
tls-acme: 'true'
insecure: Redirect
hsts: max-age=31536000
- storybook:
- storybook.drupal.ch:
tls-acme: 'true'
insecure: Redirect