Update .drone.yml
This commit is contained in:
parent
380b8e3cae
commit
06e60c2a51
1 changed files with 10 additions and 9 deletions
19
.drone.yml
19
.drone.yml
|
@ -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}}
|
||||
|
|
Loading…
Reference in a new issue