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} -f $${DOCKERFILE}
$${CONTEXT} $${CONTEXT}
- docker push -a $REGISTRY/$${CI_REPO} - docker push -a $REGISTRY/$${CI_REPO}
when:
event: tag
tag: v*
notify-matrix-success: notify-matrix-success:
image: code.balsillie.net/containers/woodpecker-util image: code.balsillie.net/containers/woodpecker-util
@ -53,19 +56,20 @@ 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 $${CI_REPO}, $${CI_COMMIT_TAG}, has been completed and pushed." --message "New image build of $${CI_REPO}, $${CI_COMMIT_TAG}, has been completed and pushed."
when:
status: [ success ]
# notify-matrix-failure: notify-matrix-failure:
# image: code.balsillie.net/containers/woodpecker-util image: code.balsillie.net/containers/woodpecker-util
# pull: false pull: false
# when: environment:
# - status: *vars
# - failure secrets:
# environment: - source: MATRIX_ACCESS_TOKEN
# *vars target: MATRIX_ACCESS_TOKEN
# secrets: commands:
# - source: MATRIX_ACCESS_TOKEN - shoutrrr send
# target: MATRIX_ACCESS_TOKEN --url matrix://$${MATRIX_ACCESS_TOKEN}@$${MATRIX_HOST}:$${MATRIX_PORT}/?rooms=$${MATRIX_ROOM}
# commands: --message "New image build of $${CI_REPO}, $${CI_COMMIT_TAG}, has failed."
# - shoutrrr send when:
# --url matrix://$${MATRIX_ACCESS_TOKEN}@$${MATRIX_HOST}:$${MATRIX_PORT}/?rooms=$${MATRIX_ROOM} status: [ failure ]
# --message "New image build of $${CI_REPO}, $${CI_COMMIT_TAG}, has failed."