Use matrix-commander for notifications
All checks were successful
ci/woodpecker/push/main Pipeline was successful
All checks were successful
ci/woodpecker/push/main Pipeline was successful
This commit is contained in:
parent
e96e2f427e
commit
b39da463f7
1 changed files with 6 additions and 9 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue