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