Use matrix-commander for notifications
All checks were successful
ci/woodpecker/push/main Pipeline was successful

This commit is contained in:
Luca Beltrame 2022-10-08 10:46:52 +02:00
parent e96e2f427e
commit b39da463f7
Signed by: einar
GPG key ID: 4707F46E9EC72DEC

View file

@ -21,15 +21,12 @@ pipeline:
volumes: volumes:
- /srv/www/htdocs/dennogumi.org:/site - /srv/www/htdocs/dennogumi.org:/site
notify: notify:
image: plugins/matrix image: matrixcommander/matrix-commander:latest
settings: commands:
homeserver: https://conference.heavensinferno.net - 'export MESSAGE="#### 🛈 CI pipeline report\n\n *CI Build for* $CI_REPO: **$CI_BUILD_STATUS**<br />*Commit author*: $CI_COMMIT_AUTHOR<br />*Commit*: [${CI_COMMIT_SHA:0:8}]($CI_BUILD_LINK) (branch $CI_COMMIT_BRANCH)"'
roomid: - '/bin/python3 /app/matrix_commander/matrix-commander --markdown -s /data/store -c /data/credentials.json --message "$(echo -e $${MESSAGE})"'
from_secret: roomid volumes:
accesstoken: - /var/lib/matrix-commander-docker:/data
from_secret: access_token
userid:
from_secret: user_id
when: when:
status: status:
- failure - failure