Skip to content

Commit

Permalink
Update drone ci for slack notify
Browse files Browse the repository at this point in the history
  • Loading branch information
xenirio committed Feb 10, 2021
1 parent 4a08497 commit 0dc42e4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,25 @@ steps:
- master
- "*-stable"

- name: Slack Notify
image: plugins/slack
settings:
webhook:
from_secret: slack_webhook
channel:
from_secret: slack_webhook_channel
template: >
*{{uppercasefirst repo.name}}*
{{#success build.status}}
[SUCCESS] Branch {{ build.branch }} by {{ build.author }}. Good job.
{{else}}
[FAILURE] Branch {{ build.branch }} by {{ build.author }}. Fix me please.
{{/success}}
when:
branch:
- master
- "*-stable"

trigger:
event:
- push
Expand Down

0 comments on commit 0dc42e4

Please sign in to comment.