Notification auskommentiert
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Stefan H. 2023-02-08 11:45:03 +01:00
parent 4e108a3a18
commit c656e96a86

View file

@ -34,23 +34,24 @@ steps:
environment:
SSH_KEY:
from_secret: drone_ssh_key
- name: notify
image: plugins/matrix
settings:
homeserver: https://matrix.un-hack-bar.de
roomid: fUltBPKcpwFMiDQCAL:matrix.un-hack-bar.de
username: daneelolivaw
password: $MATRIX_PASSWD
template: |
{{#success build.status}}
{{build.author}} just built `{{repo.name}}:{{build.branch}}` from <${DRONE_COMMIT_LINK}|#{{truncate build.commit 8}}>
:new: {{build.message}}
{{else}}
{{build.author}} just broke the build of `{{repo.name}}:{{build.branch}}` with >${DRONE_COMMIT_LINK}|#{{truncate build.commit 8}}
:new: :zombie: {{build.message}}
{{/success}}
:stopwatch: {{ since build.started }}
:gear: {{build.link}}
environment:
MATRIX_PASSWD:
from_secred: matrix_password
# Currently not working
#- name: Notify via Matrix
# image: plugins/matrix
# settings:
# homeserver: https://matrix.un-hack-bar.de
# roomid: fUltBPKcpwFMiDQCAL:matrix.un-hack-bar.de
# username: daneelolivaw
# password: $MATRIX_PASSWD
# template: |
# {{#success build.status}}
# {{build.author}} just built `{{repo.name}}:{{build.branch}}` from <${DRONE_COMMIT_LINK}|#{{truncate build.commit 8}}>
# :new: {{build.message}}
# {{else}}
# {{build.author}} just broke the build of `{{repo.name}}:{{build.branch}}` with >${DRONE_COMMIT_LINK}|#{{truncate build.commit 8}}
# :new: :zombie: {{build.message}}
# {{/success}}
# :stopwatch: {{ since build.started }}
# :gear: {{build.link}}
# environment:
# MATRIX_PASSWD:
# from_secred: matrix_password