ci: Add the notify pipeline

This commit is contained in:
Sameer Rahmani 2023-05-13 21:44:32 +01:00
parent 476e17f5d9
commit b22a2bd0b6
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
2 changed files with 23 additions and 1 deletions

View File

@ -8,7 +8,7 @@ clone:
pipeline:
Build:
image: beta.devheroes.codes/serene/ci:9
image: devheroes.codes/serene/ci:9
commands:
# Uncomment this when running with a new toolchain for the
# first time to save up space

22
.woodpecker/notify.yml Normal file
View File

@ -0,0 +1,22 @@
pipeline:
Notify:
image: lxsameer/notify:3
settings:
matrix_room_id:
from_secret: matrix_room
matrix_access_token:
from_secret: matrix_token
matrix_user:
from_secret: matrix_user
matrix_msg: "[${CI_REPO}][<b>FAILED</b>] Branch: ${CI_BRANCH} - Job #${CI_BUILD_NUMBER}"
when:
- evaluate: 'CI_STEP_STATUS == "failure" || CI_PREV_PIPELINE_STATUS == "failure"'
depends_on:
- lint
- build
runs_on: [ success, failure ]
skip_clone: true