ci: Add the mailer step to notify pipeline
ci/woodpecker/push/lint Pipeline failed Details
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/notify unknown status Details

This commit is contained in:
Sameer Rahmani 2023-05-14 11:13:33 +01:00
parent 263e3f7384
commit b66ed56a01
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
3 changed files with 17 additions and 3 deletions

View File

@ -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:

View File

@ -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)"

View File

@ -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