From b66ed56a015f2a3820a69abbb8d964a099f94c4d Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Sun, 14 May 2023 11:13:33 +0100 Subject: [PATCH] ci: Add the mailer step to notify pipeline --- .woodpecker/build.yml | 2 -- .woodpecker/lint.yml | 2 +- .woodpecker/notify.yml | 16 ++++++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index db709c1..c4f68ff 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -13,8 +13,6 @@ pipeline: # Uncomment this when running with a new toolchain for the # first time to save up space # - rm -rf /root/.serene/* - - pwd - - ls - ./builder build -DSERENE_DISABLE_CCACHE=ON volumes: diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index ac876fd..5ab7418 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -8,7 +8,7 @@ clone: pipeline: Linters: - image: beta.devheroes.codes/serene/ci:9 + image: devheroes.codes/serene/ci:10 commands: - ./builder setup - export FILES="$(git diff --name-only HEAD HEAD~1)" diff --git a/.woodpecker/notify.yml b/.woodpecker/notify.yml index 058be29..8a33193 100644 --- a/.woodpecker/notify.yml +++ b/.woodpecker/notify.yml @@ -14,6 +14,22 @@ pipeline: when: status: [ failure ] + Mailer: + image: lxsameer/woodpecker_mailer:4 + settings: + from: ci@serene-lang.org + user: + from_secret: mail_user + password: + from_secret: mail_pass + to: ${CI_COMMIT_AUTHOR_EMAIL} + subject: "[${CI_REPO}] JOB #${CI_BUILD_NUMBER} - ${CI_PREV_STEP_STATUS}" + text: | + BUILD: ${CI_BUILD_LINK} + COMMIT: ${CI_COMMIT_LINK} + when: + status: [ failure ] + depends_on: - lint - build