-
Notifications
You must be signed in to change notification settings - Fork 114
/
example.pantheon.yml
92 lines (82 loc) · 2.89 KB
/
example.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
83
84
85
86
87
88
89
90
91
92
---
api_version: 1
# PHP Version:
# https://pantheon.io/docs/pantheon-yml#php-version
# Set site's PHP version to 7.0
php_version: 7.0
# Drush Version
# https://pantheon.io/docs/pantheon-yml/#drush-version
drush_version: 8
# Protected Web Paths
# https://pantheon.io/docs/pantheon-yml#protected-web-paths
protected_web_paths:
- /example.txt
- /example_directory
# Nested Docroot
# https://pantheon.io/docs/pantheon-yml#nested-docroot
web_docroot: true
# Quicksilver Platform Integration Hooks
# https://pantheon.io/docs/pantheon-yml#quicksilver
workflows:
# Site Creation
deploy_product:
after:
- type: webphp
description: Post to Slack after site creation
script: private/scripts/slack_after_site_creation.php
# Multidev Creation
create_cloud_development_environment:
after:
- type: webphp
description: Post to Slack after Multidev creation
script: private/scripts/slack_after_multidev_creation.php
# Commits
sync_code:
after:
- type: webphp
description: Post to Slack after each code pushed
script: private/scripts/slack_after_code_push.php
# Database Clones
clone_database:
before:
- type: webphp
description: Post to Slack before cloning the database
script: private/scripts/slack_before_db_clone.php
after:
- type: webphp
description: sanitize the db after each database Clone
script: private/scripts/sanitize_after_db_clone.php
- type: webphp
description: generate development article content after the database clones
script: private/scripts/generate_dev_content.php
- type: webphp
description: Post to Slack after the database clones
script: private/scripts/slack_after_db_clone.php
# Code Deploys: Notify, Sanitize (if on test), Post to new relic, update db, and notify completion
deploy:
before:
- type: webphp
description: Post to Slack before cloning the database
script: private/scripts/slack_before_deploy.php
after:
- type: webphp
description: Post to new relic always
script: private/scripts/Post_new_relic.php
- type: webphp
description: sanitize the db after deploy to test
script: private/scripts/sanitize_after_db_clone.php
- type: webphp
description: pull configuration into the database
script: private/scripts/config_pull_after_deploy.php
- type: webphp
description: do a visual regression test with Backtrac.io
script: private/scripts/backtrac_visualregression.php
- type: webphp
description: Post to Slack after each deploy
script: private/scripts/slack_after_deploy.php
# Cache Clears: Post to Slack after clearing cache
clear_cache:
after:
- type: webphp
description: Post to Slack after cache clear
script: private/scripts/slack_after_clear_cache.php