-
Notifications
You must be signed in to change notification settings - Fork 16
/
.drone.yml
29 lines (27 loc) · 985 Bytes
/
.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
workspace:
base: /go
path: src/github.com/justinbarrick/go-k8s-portforward
pipeline:
build:
image: golang:1.10-alpine
commands:
- apk update && apk add make
- make test
- make build
when:
event: push
slack:
image: plugins/slack
webhook: https://hooks.slack.com/services/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
channel: '#kubernetes'
username: Drone CI
icon_url: https://i.imgur.com/B7Tk2Xf.png
when:
status: [success, failure]
event: [push,tag]
template: >
{{#success build.status}}
Build <{{build.link}}|#{{build.number}}> for <https://github.com/{{repo.owner}}/{{repo.name}}/tree/{{build.commit}}|{{repo.name}}#{{build.branch}}> by {{build.author}} succeeded!
{{else}}
Build <{{build.link}}|#{{build.number}}> for <https://github.com/{{repo.owner}}/{{repo.name}}/tree/{{build.commit}}|{{repo.name}}#{{build.branch}}> by {{build.author}} failed.
{{/success}}