-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.lagoon.yml
65 lines (64 loc) · 1.87 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
docker-compose-yaml: docker-compose.yml
environment_variables:
git_sha: "true"
project: simplytestme-website
tasks:
pre-rollout:
- run:
command: env
name: env variables
service: cli
post-rollout:
- run:
command: |
if [[ -n ${LAGOON_PR_BASE_BRANCH} ]] && ! drush status --fields=bootstrap | grep -q "Successful"; then
php vendor/bin/drush si simplytest --existing-config --account-pass=admin --yes
fi
name: If this is a pull request, install the database.
service: cli
- run:
name: drush updb
command: php vendor/bin/drush deploy
service: cli
- run:
command: php scripts/github/deployment.php
name: Push a deployment and success status
service: cli
environments:
main:
routes:
- nginx:
- simplytest.me:
insecure: Redirect
tls-acme: "true"
- www.simplytest.me:
insecure: Redirect
tls-acme: "true"
cronjobs:
- name: drush cron
schedule: "*/30 * * * *"
command: drush cron
service: cli
- name: simplytest_projects_project_refresher
schedule: "*/10 * * * *"
command: drush queue:run simplytest_projects_project_refresher --items-limit 250
service: cli
# todo remove
prod:
routes:
- nginx:
- beta.simplytest.me:
insecure: Redirect
tls-acme: "true"
- dev.simplytest.me:
insecure: Redirect
tls-acme: "true"
cronjobs:
- name: drush cron
schedule: "*/30 * * * *"
command: drush cron
service: cli
- name: simplytest_projects_project_refresher
schedule: "*/10 * * * *"
command: drush queue:run simplytest_projects_project_refresher --items-limit 250
service: cli