Skip to content

Commit

Permalink
feat: use custom drone.io matrix plugin to send CI notifications to s…
Browse files Browse the repository at this point in the history
…onoj.org matrix server

Signed-off-by: Christopher Arndt <[email protected]>
  • Loading branch information
SpotlightKid committed Jul 22, 2023
1 parent 7e801ee commit 25d61e0
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -441,3 +441,45 @@ when:
status:
- success
- failure

---
kind: pipeline
name: Send notification

steps:
- name: Notify Matrix chat
image: spotlightkid/drone-matrixchat-notify
settings:
homeserver: 'https://sonoj.org'
roomid: '!AkWpRHuPJQwVbEpayh:sonoj.org'
userid: '@bot-archlinux-proaudio:sonoj.org'
accesstoken:
from_secret: matrix-bot-token
deviceid: 'HOFQKIPDQE'
template: |
CI pipeline `${DRONE_REPO}` build #${DRONE_BUILD_NUMBER} status: **${DRONE_BUILD_STATUS}**
Build logs: [#${DRONE_BUILD_NUMBER}](${DRONE_BUILD_LINK})
PR: [#${DRONE_PULL_REQUEST} ${DRONE_PULL_REQUEST_TITLE}](${DRONE_COMMIT_LINK}) by *${DRONE_COMMIT_AUTHOR}*
```
${DRONE_COMMIT_MESSAGE}
```
markdown: 'yes'

depends_on:
- Build and check
- Build arm64
- Website

trigger:
ref:
include:
- refs/heads/master
- refs/pull/**

when:
status:
- success
- failure

0 comments on commit 25d61e0

Please sign in to comment.