Compare commits

...

2 Commits

Author SHA1 Message Date
afc817d5d6 when conditions for all steps
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2022-08-22 12:34:35 +12:00
8c3e233abc re-add when
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2022-08-22 12:31:42 +12:00

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
@ -53,19 +56,20 @@ pipeline:
- 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 been completed and pushed."
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 ]