Combine post-deploy and post-rollback

This commit is contained in:
Donal McBreen
2023-05-23 12:14:37 +01:00
parent 004f1b04e6
commit cc2b321d93
5 changed files with 5 additions and 26 deletions

View File

@@ -885,14 +885,14 @@ firing a JSON webhook. These variables include:
- `MRSK_DESTINATION` - optional: destination, e.g. "staging"
- `MRSK_ROLE` - optional: role targeted, e.g. "web"
There are three hooks:
There are two hooks:
1. pre-build
Used for pre-build checks - e.g. there are no uncommitted changes or that CI has passed.
2. post-deploy and post-rollback
2. post-deploy - run after a deploy, redeploy or rollback
These two hooks are also passed a `MRSK_RUNTIME` env variable.
This hook is also passed a `MRSK_RUNTIME` env variable.
This could be used to broadcast a deployment message, or register the new version with an APM.