drone.yml: Nicer notifications.

This commit is contained in:
Fabian Schlenz 2019-06-11 19:44:53 +02:00
parent 31779f491f
commit 9acdc42dc3

View File

@ -21,15 +21,13 @@ steps:
password: password:
from_secret: matrix_password from_secret: matrix_password
template: > template: >
Built {{commit.branch}} @{{truncate build.commit 7}}: {{commit.message}} Built <code>{{truncate build.commit 7}}</code>: <code>{{build.message}}</code><br>
<br>
{{#success build.status}} {{#success build.status}}
Build {{build.number}} succeeded. Good job! Build {{build.number}} succeeded. Good job!
{{else}} {{else}}
Build {{build.number}} failed. See {{build.link}} for more information. <strong>Build {{build.number}} failed.</strong> See {{build.link}} for more information.
{{/success}} {{/success}}
{{build.message}}
when: when:
status: [success, failure] status: [success, failure]