when conditions for all steps
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Michael Balsillie 2022-08-22 12:34:35 +12:00
parent 8c3e233abc
commit afc817d5d6

View File

@ -40,6 +40,9 @@ pipeline:
-f $${DOCKERFILE}
$${CONTEXT}
- docker push -a $REGISTRY/$${CI_REPO}
when:
event: tag
tag: v*
notify-matrix-success:
image: code.balsillie.net/containers/woodpecker-util
@ -56,18 +59,17 @@ pipeline:
when:
status: [ success ]
# 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
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."
when:
status: [ failure ]