Update .drone.yml

This commit is contained in:
Ruan Bekker 2019-04-30 17:32:33 +02:00 committed by GitHub
parent 380b8e3cae
commit 06e60c2a51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,20 +13,21 @@ pipeline:
- echo "running env command"
- env
slack:
notify-via-slack:
image: plugins/slack
webhook:
from_secret: slack_webhook
channel: system_events
link_names: true
icon_url: https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/320/microsoft/153/police-cars-revolving-light_1f6a8.png
when:
status: [ success, failure ]
username: Builds
template: >
{{#success build.status}}
build {{build.number}} status: *{{uppercase build.status}}*
by: {{lowercase build.author}}
more info: {{build.link}}
[DRONE CI]: *{{ uppercase build.status }}* : <https://github.com/{{ repo.owner }}/{{ repo.name }}|{{ repo.owner }}/{{ repo.name }}>
> link: {{build.link}}
> author: {{build.author}}
> commit: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commit/{{build.commit}}|{{truncate build.commit 8}}>
{{else}}
build {{build.number}} failed. Fix me please.
[DRONE CI]: *{{ uppercase build.status }}* : <https://github.com/{{ repo.owner }}/{{ repo.name }}|{{ repo.owner }}/{{ repo.name }}>
> link: {{build.link}}
> author: {{build.author}}
> commit: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commit/{{build.commit}}|{{truncate build.commit 8}}>
{{/success}}