Switch telegram notifications to matrix
This commit is contained in:
parent
c666f36cf4
commit
85ff67ff1c
1 changed files with 12 additions and 10 deletions
22
.drone.yml
22
.drone.yml
|
@ -506,22 +506,24 @@ trigger:
|
||||||
- "refs/tags/**"
|
- "refs/tags/**"
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
|
- build
|
||||||
- release-version
|
- release-version
|
||||||
- release-latest
|
- release-latest
|
||||||
|
- trigger-desktop-update
|
||||||
|
- docker-arm-release
|
||||||
|
- docker-amd64-release
|
||||||
- docker-manifest
|
- docker-manifest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: telegram
|
- name: notify
|
||||||
image: appleboy/drone-telegram:1-linux-amd64
|
image: plugins/matrix
|
||||||
settings:
|
settings:
|
||||||
token:
|
homeserver: https://matrix.org
|
||||||
from_secret: TELEGRAM_TOKEN
|
roomid: WqBDCxzghKcNflkErL:matrix.org
|
||||||
to:
|
username:
|
||||||
from_secret: TELEGRAM_TO
|
from_secret: matrix_username
|
||||||
message: >
|
password:
|
||||||
{{repo.owner}}/{{repo.name}}: \[{{build.status}}] Build {{build.number}}
|
from_secret: matrix_password
|
||||||
{{commit.author}} pushed to {{commit.branch}} {{commit.sha}}: `{{commit.message}}`
|
|
||||||
Build started at {{datetime build.started "2006-Jan-02T15:04:05Z" "GMT+2"}} finished at {{datetime build.finished "2006-Jan-02T15:04:05Z" "GMT+2"}}.
|
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
|
|
Loading…
Reference in a new issue