forked from amazeeio/syseng-assessment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.lagoon.yml
44 lines (39 loc) · 1.17 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
docker-compose-yaml: docker-compose.yml
tasks:
pre-rollout:
- run:
name: drush backup
command: drush -y ard --destination=/app/sites/default/files/private/pre-deploy.tar.gz
service: cli
post-rollout:
- run:
name: env variables
command: env
service: cli
- run:
name: IF no Drupal installed drush si with no email sending
command: |
if [[ $(drush core-status bootstrap --pipe) == "" ]]; then
# no drupal installed, we install drupal from scratch
drush si config_installer -y --account-name=admin --account-pass=admin install_configure_form.enable_update_status_module=NULL install_configure_form.enable_update_status_emails=NULL
fi
service: cli
shell: bash
- run:
name: drush cim
command: drush -y cim
service: cli
- run:
name: drush cr
command: drush -y cr
service: cli
environments:
master:
cronjobs:
- name: drush cron
schedule: "*/15 * * * *"
command: drush cron
service: cli
routes:
- varnish:
- "drupal-example.amazee.io"