ci: Add the notify pipeline
This commit is contained in:
parent
476e17f5d9
commit
b22a2bd0b6
|
@ -8,7 +8,7 @@ clone:
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
Build:
|
Build:
|
||||||
image: beta.devheroes.codes/serene/ci:9
|
image: devheroes.codes/serene/ci:9
|
||||||
commands:
|
commands:
|
||||||
# Uncomment this when running with a new toolchain for the
|
# Uncomment this when running with a new toolchain for the
|
||||||
# first time to save up space
|
# first time to save up space
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue