Skip to content

Commit 0dc42e4

Browse files
committed
Update drone ci for slack notify
1 parent 4a08497 commit 0dc42e4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.drone.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,25 @@ steps:
6464
- master
6565
- "*-stable"
6666

67+
- name: Slack Notify
68+
image: plugins/slack
69+
settings:
70+
webhook:
71+
from_secret: slack_webhook
72+
channel:
73+
from_secret: slack_webhook_channel
74+
template: >
75+
*{{uppercasefirst repo.name}}*
76+
{{#success build.status}}
77+
[SUCCESS] Branch {{ build.branch }} by {{ build.author }}. Good job.
78+
{{else}}
79+
[FAILURE] Branch {{ build.branch }} by {{ build.author }}. Fix me please.
80+
{{/success}}
81+
when:
82+
branch:
83+
- master
84+
- "*-stable"
85+
6786
trigger:
6887
event:
6988
- push

0 commit comments

Comments
 (0)