Skip to content

Commit

Permalink
Merge pull request #427 from roots/add-more-deploy-hooks
Browse files Browse the repository at this point in the history
Add extra "global" before/after deploy hooks
  • Loading branch information
swalkinshaw committed Nov 30, 2015
2 parents ab58731 + dcd932a commit 13469dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### HEAD
* Add global `deploy_before` and `deploy_after` hooks ([#427](https://github.com/roots/trellis/pull/427))
* Fix HSTS headers ([#424](https://github.com/roots/trellis/pull/424))
* Notify Windows users about SSH forwarding ([#423](https://github.com/roots/trellis/pull/423))
* Use append_privs for WP DB privileges ([#422](https://github.com/roots/trellis/pull/422))
Expand Down
2 changes: 2 additions & 0 deletions roles/deploy/hooks/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# 2. set one of the below hook variables to "{{ playbook_dir }}/path/to/tasks-file.yml" in `deploy.yml`
#
# Available hooks:
# - deploy_before
# - deploy_initialize_before
# - deploy_initialize_after
# - deploy_update_before
Expand All @@ -18,3 +19,4 @@
# - deploy_share_after
# - deploy_finalize_before
# - deploy_finalize_after
# - deploy_after
2 changes: 2 additions & 0 deletions roles/deploy/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
- include: "{{ deploy_before | default('../hooks/example.yml') }}"
- include: initialize.yml
- include: update.yml
- include: prepare.yml
- include: build.yml
- include: share.yml
- include: finalize.yml
- include: "{{ deploy_after | default('../hooks/example.yml') }}"

0 comments on commit 13469dc

Please sign in to comment.