Skip to content

Commit

Permalink
feat: send CI notifications to sonoj.org matrix server (#254)
Browse files Browse the repository at this point in the history
Use [custom drone.io plugin](https://github.com/SpotlightKid/drone-matrixchat-notify) to send CI notifications to sonoj.org matrix server.
  • Loading branch information
SpotlightKid authored Jul 22, 2023
1 parent 7e801ee commit 2912600
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 2912600

Please sign in to comment.