-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
.lagoon.yml
63 lines (63 loc) · 1.56 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
current: amazeeio
docker-compose-yaml: docker-compose.yml
environment_variables:
git_sha: "true"
environments:
master:
cronjobs:
- command: drush cron
name: drush cron
schedule: H * * * *
service: cli
routes:
- frontend:
- app.contribkanban.com:
insecure: Redirect
tls-acme: "true"
- contribkanban.com:
insecure: Redirect
tls-acme: "true"
- www.contribkanban.com:
insecure: Redirect
tls-acme: "true"
- nginx:
- api.contribkanban.com:
insecure: Redirect
tls-acme: "true"
project: contribkanban
routes:
insecure: Redirect
tasks:
post-rollout:
- run:
command: |
if [[ -n ${LAGOON_PR_BASE_BRANCH} ]] && tables=$(php bin/drush sqlq 'show tables;') && [ -z "$tables" ]; then
php bin/drush -y site-install --account-pass=admin
fi
name: If this is a pull request, install the database.
service: cli
- run:
command: php bin/drush updb --yes
name: drush updb
service: cli
- run:
command: php bin/drush cim --yes
name: drush cim
service: cli
- run:
command: php bin/drush sapi-i --yes
name: drush sapi-i
service: cli
- run:
command: ./scripts/github-build-status.sh success
name: Push a pending status
service: cli
pre-rollout:
- run:
command: env
name: env variables
service: cli
# - run:
# command: ./scripts/github-build-status.sh pending
# name: Push a pending status
# service: cli