when statements don't work
Some checks failed
ci/woodpecker/tag/woodpecker Pipeline failed

This commit is contained in:
Michael Balsillie 2022-08-22 12:14:02 +12:00
parent 2457c13302
commit 0db56e959a

View File

@ -44,9 +44,6 @@ pipeline:
notify-matrix-success:
image: code.balsillie.net/containers/woodpecker-util
pull: false
when:
- status:
- success
environment:
*vars
secrets:
@ -57,18 +54,18 @@ pipeline:
--url matrix://$${MATRIX_ACCESS_TOKEN}@$${MATRIX_HOST}:$${MATRIX_PORT}/?rooms=$${MATRIX_ROOM}
--message "New image build of $${CI_REPO}, $${CI_COMMIT_TAG}, has been completed and pushed."
notify-matrix-failure:
image: code.balsillie.net/containers/woodpecker-util
pull: false
when:
- status:
- failure
environment:
*vars
secrets:
- source: MATRIX_ACCESS_TOKEN
target: MATRIX_ACCESS_TOKEN
commands:
- shoutrrr send
--url matrix://$${MATRIX_ACCESS_TOKEN}@$${MATRIX_HOST}:$${MATRIX_PORT}/?rooms=$${MATRIX_ROOM}
--message "New image build of $${CI_REPO}, $${CI_COMMIT_TAG}, has failed."
# notify-matrix-failure:
# image: code.balsillie.net/containers/woodpecker-util
# pull: false
# when:
# - status:
# - failure
# environment:
# *vars
# secrets:
# - source: MATRIX_ACCESS_TOKEN
# target: MATRIX_ACCESS_TOKEN
# commands:
# - shoutrrr send
# --url matrix://$${MATRIX_ACCESS_TOKEN}@$${MATRIX_HOST}:$${MATRIX_PORT}/?rooms=$${MATRIX_ROOM}
# --message "New image build of $${CI_REPO}, $${CI_COMMIT_TAG}, has failed."