diff --git a/.woodpecker.yml b/.woodpecker.yml index 20b88a5..f361ff1 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -9,7 +9,8 @@ pipeline: - pip3 install psycopg2 proteus - python3 setup.py install - python3 -m unittest - notify: + + notify-success: image: plugins/matrix settings: home_server: https://matrix.org @@ -20,8 +21,26 @@ pipeline: from_secret: matrix_password template: > PikPukPak.. -
${CI_COMMIT_AUTHOR}: ${CI_REPO}/{{build.branch}}#{{truncate build.commit 8}}{{build.status}}
-${CI_COMMIT_MESSAGE}+
${CI_COMMIT_AUTHOR}: JOB ${CI_BUILD_NUMBER} TODO BIEN PARA
+${CI_COMMIT_MESSAGE}+ when: + status: [ success ] + + notify-failure: + image: plugins/matrix + settings: + home_server: https://matrix.org + roomid: "!oxZmsJwfvciTuLYIwg:matrix.org" + username: + from_secret: matrix_user + password: + from_secret: matrix_password + template: > + PikPukPak.. +
${CI_COMMIT_AUTHOR}: JOB ${CI_BUILD_NUMBER} !!!TODO MAL PARA
+${CI_COMMIT_MESSAGE}+ when: + status: [ failure ] services: postgres: