gitlab: new pipeline 'fail'

New pipeline called fail that runs in the 'finish' stage but only when a
job fails.  The job updates the github status to indicate failure.
This commit is contained in:
Achilleas Koutsou 2024-03-05 10:46:31 +01:00 committed by Simon Steinbeiß
parent b0abe9725d
commit f7dd0878b9

View file

@ -122,3 +122,13 @@ finish:
- shell
script:
- schutzbot/update_github_status.sh finish
fail:
stage: finish
tags:
- shell
script:
- schutzbot/update_github_status.sh fail
- exit 1 # make the pipeline fail so it doesn't look like success in gitlab
when:
on_failure