From b22a2bd0b670f276aa6953a97624dd6ebde98acf Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Sat, 13 May 2023 21:44:32 +0100 Subject: [PATCH] ci: Add the notify pipeline --- .woodpecker/build.yml | 2 +- .woodpecker/notify.yml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .woodpecker/notify.yml diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 646814a..4e2248f 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -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 diff --git a/.woodpecker/notify.yml b/.woodpecker/notify.yml new file mode 100644 index 0000000..1c04b2c --- /dev/null +++ b/.woodpecker/notify.yml @@ -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}][FAILED] 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