forked from pantheon-systems/quicksilver-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.pantheon.yml
52 lines (47 loc) · 1.75 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
---
api_version: 1
workflows:
# Commits: Notify team of new commit to master (dev)
sync_code:
after:
- type: webphp
description: post to slack after each code pushed
script: private/scripts/slack_after_code_push.php
# Database Clones: Notify, sanitize, and notify on db clone
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: 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: 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