forked from amazeeio/drupal-example-simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.lagoon.yml
108 lines (101 loc) · 2.44 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
docker-compose-yaml: docker-compose.yml
project: amazeeio-test6-demo
ssh: token.main.lagoon-core.test6.amazee.io:22
api: https://api.main.lagoon-core.test6.amazee.io/graphql
environment_variables:
git_sha: 'true'
tasks:
pre-rollout:
-
run:
name: Always write cluster id to pre-rollout file
command: echo $LAGOON_KUBERNETES > /tmp/test-0-pre-rollout
service: cli
shell: bash
when: exists("LAGOON_KUBERNETES")
-
run:
name: Show results
command: ls -al /tmp/test-*
service: cli
shell: bash
post-rollout:
-
run:
name: Check if development
command: touch /tmp/test-1-development
service: cli
shell: bash
when: LAGOON_ENVIRONMENT_TYPE=="development"
-
run:
name: Check if not production
command: touch /tmp/test-2-not-production
service: cli
shell: bash
when: LAGOON_ENVIRONMENT_TYPE!="production"
-
run:
name: Check if development
command: touch /tmp/test-3-production-should-not-write
service: cli
shell: bash
when: LAGOON_ENVIRONMENT_TYPE=="production"
-
run:
name: Check variable exists
command: touch /tmp/test-5-var-exists
service: cli
shell: bash
when: exists("LAGOON_KUBERNETES")
-
run:
name: Show results
command: ls -al /tmp/test-*
service: cli
shell: bash
-
run:
name: Show env in php
command: env
service: nginx
container: php
-
run:
name: drush updb
command: drush -y updb
service: cli
-
run:
name: drush cr
command: drush -y cr
service: cli
backup-retention:
production:
hourly: 48
daily: 185
environments:
main:
# routes:
cronjobs:
- name: drush cron
schedule: "*/30 * * * *"
command: drush cron --debug
service: cli
lagoon-sync:
ssh:
host: ssh.main.lagoon-core.test6.amazee.io
port: 22
mariadb:
config:
hostname: "${MARIADB_HOST:-mariadb}"
username: "${MARIADB_USERNAME:-drupal}"
password: "${MARIADB_PASSWORD:-drupal}"
port: "${MARIADB_PORT:-3306}"
database: "${MARIADB_DATABASE:-drupal}"
files:
config:
sync-directory: "/app/web/sites/default/files"
drupalconfig:
config:
syncpath: "./config/sync"