This commit is contained in:
parent
b96652d2a8
commit
752d61ea4f
@ -78,7 +78,7 @@ pipeline:
|
|||||||
- HEADER=$HEADER" Bearer $WATCHTOWER_HTTP_API_TOKEN"
|
- HEADER=$HEADER" Bearer $WATCHTOWER_HTTP_API_TOKEN"
|
||||||
- curl -H $HEADER -i "https://$${WATCHTOWER_HOST}/v1/update"
|
- curl -H $HEADER -i "https://$${WATCHTOWER_HOST}/v1/update"
|
||||||
|
|
||||||
notify-matrix:
|
notify-matrix-success:
|
||||||
image: code.balsillie.net/containers/woodpecker-util
|
image: code.balsillie.net/containers/woodpecker-util
|
||||||
pull: false
|
pull: false
|
||||||
environment:
|
environment:
|
||||||
@ -91,3 +91,23 @@ pipeline:
|
|||||||
- shoutrrr send
|
- shoutrrr send
|
||||||
--url matrix://$${MATRIX_ACCESS_TOKEN}@$${MATRIX_HOST}:$${MATRIX_PORT}/?rooms=$${MATRIX_ROOM}
|
--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."
|
--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
|
Loading…
Reference in New Issue
Block a user