condiitional notifications
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Michael Balsillie 2022-08-22 12:42:28 +12:00
parent b96652d2a8
commit 752d61ea4f

View File

@ -78,7 +78,7 @@ pipeline:
- HEADER=$HEADER" Bearer $WATCHTOWER_HTTP_API_TOKEN"
- curl -H $HEADER -i "https://$${WATCHTOWER_HOST}/v1/update"
notify-matrix:
notify-matrix-success:
image: code.balsillie.net/containers/woodpecker-util
pull: false
environment:
@ -91,3 +91,23 @@ pipeline:
- shoutrrr send
--url matrix://$${MATRIX_ACCESS_TOKEN}@$${MATRIX_HOST}:$${MATRIX_PORT}/?rooms=$${MATRIX_ROOM}
--message "New image build of $${ORGANIZATION}/$${REPO}, $${TAG}, has completed and been deployed."
when:
status:
- success
notify-matrix-failure:
image: code.balsillie.net/containers/woodpecker-util
pull: false
environment:
*vars
secrets:
- source: MATRIX_ACCESS_TOKEN
target: MATRIX_ACCESS_TOKEN
commands:
- sleep 60
- shoutrrr send
--url matrix://$${MATRIX_ACCESS_TOKEN}@$${MATRIX_HOST}:$${MATRIX_PORT}/?rooms=$${MATRIX_ROOM}
--message "New image build of $${ORGANIZATION}/$${REPO}, $${TAG}, has failed."
when:
status:
- failure