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

@@ -1,18 +0,0 @@
#!/bin/sh
# A sample post-rollback hook
#
# Checks:
# 1. We have a clean checkout
# 2. A remote is configured
# 3. The branch has been pushed to the remote
# 4. The version we are deploying matches the remote
#
# These environment variables are available:
# MRSK_RECORDED_AT
# MRSK_PERFORMER
# MRSK_VERSION
# MRSK_DESTINATION (if set)
# MRSK_RUNTIME
echo "$MRSK_PERFORMER rolled back to $MRSK_VERSION on $MRSK_DESTINATION in $MRSK_RUNTIME seconds"