-
Notifications
You must be signed in to change notification settings - Fork 8
/
pantheon.yml
82 lines (77 loc) · 3.15 KB
/
pantheon.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
# changes to pantheon.yml will not be processed when first creating the branch for multidevs
# as a workaround, modify this file, then push to trigger configuration changes
# more: https://pantheon.io/docs/pantheon-yml#deploying-configuration-changes-to-multidev
api_version: 1
web_docroot: true
# see: https://pantheon.io/docs/pantheon-yml#enforce-https--hsts
enforce_https: full
# second commit to trigger update on pantheon
php_version: 8.2
database:
version: 10.4
drush_version: 10
workflows:
deploy_product: # create site (dev)
after:
- type: webphp
description: 'Run composer prepare-for-pantheon'
script: private/scripts/deploy_product/prepare-for-pantheon.php
- type: webphp
description: 'Run composer install & drupal-scaffold'
script: private/scripts/deploy_product/composer-install.php
- type: webphp
description: 'Notify in slack when deployed'
script: private/scripts/slack-notify/slack_notify_drush_site_audit.php
create_cloud_development_environment: # multidev creation
after:
- type: webphp
description: 'Multidev created'
script: private/scripts/test/test_hook.php
- type: webphp
description: 'Import configuration from .yml files'
script: private/scripts/drush_config_import/drush_config_import.php
- type: webphp
description: 'Create test users (multidev)'
script: private/scripts/drush-create-users/drush-create-users.php
sync_code: # push code via git (dev/multidev)
after:
- type: webphp
description: 'sync_code workflow'
script: private/scripts/test/test_hook.php
- type: webphp
description: 'Import configuration from .yml files'
script: private/scripts/drush_config_import/drush_config_import.php
- type: webphp
description: 'Log to New Relic'
script: private/scripts/new_relic/new_relic_deploy.php
- type: webphp
description: 'Create test users (sync_code)'
script: private/scripts/drush-create-users/drush-create-users.php
- type: webphp
description: 'Deploy hook'
script: private/scripts/drush-deploy/drush-deploy-hook.php
deploy: # deploy code to test or live
after:
- type: webphp
description: 'Import configuration from .yml files'
script: private/scripts/drush_config_import/drush_config_import.php
- type: webphp
description: 'Notify in slack when deployed'
script: private/scripts/slack-notify/slack_notify_drush_site_audit.php
- type: webphp
description: 'Create test users'
script: private/scripts/drush-create-users/drush-create-users.php
- type: webphp
description: 'Log to New Relic'
script: private/scripts/new_relic/new_relic_deploy.php
# - type: webphp
# description: 'Deploy hook'
# script: private/scripts/drush-deploy/drush-deploy-hook.php
- type: webphp
description: 'deploy workflow'
script: private/scripts/test/test_hook.php
clear_cache:
after:
- type: webphp
description: 'Cache cleared'
script: private/scripts/test/test_hook.php