-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
34 lines (31 loc) · 1.1 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
kind: pipeline
name: default
steps:
- name: initial_notification
image: plugins/slack
settings:
webhook:
from_secret: slack_webhook
template: >
Repository: *{{repo.name}}*. Status: *Running*. Author: *{{build.author}}*. Build: *#{{build.number}}*. Branch: *{{build.branch}}*. Event: *{{build.event}}*. Logs: {{build.link}}
- name: publish
image: plugins/npm
settings:
token:
from_secret: npm_token
- name: build_status_notification
image: plugins/slack
settings:
webhook:
from_secret: slack_webhook
template: >
{{#success build.status}}
Repository: *{{repo.name}}*. Status: *Completed*. Author: *{{build.author}}*. Build: *#{{build.number}}*. Branch: *{{build.branch}}*. Event: *{{build.event}}*. Logs: {{build.link}}
{{else}}
Repository: *{{repo.name}}*. Status: *Failed*. Author: *{{build.author}}*. Build: *#{{build.number}}*. Branch: *{{build.branch}}*. Event: *{{build.event}}*. Logs: {{build.link}}
{{/success}}
when:
status: [success, failure]
trigger:
event:
- tag