-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
47 lines (40 loc) · 953 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
kind: pipeline
type: docker
name: default
volumes:
- name: deps
temp: { }
steps:
- name: deps
image: golang:1.19
commands:
- go get -d -v .
volumes:
- name: deps
path: /go
- name: build
image: golang:1.19
commands:
- go build -v ./
volumes:
- name: deps
path: /go
depends_on:
- deps
- name: slack
image: plugins/slack
settings:
webhook:
from_secret: SLACK_WEBHOOK
channel: cicd
link_names: true
template: >
{{#success build.status}}
The {{ repo.owner }}/{{ repo.name }} build <{{ build.link }}| {{build.number}} ↗> is succeeded! Thanks <@{{build.author}}>
{{else}}
The {{ repo.owner }}/{{ repo.name }} build <{{ build.link }}| {{build.number}} ↗> is broken! Blame <@{{build.author}}>
{{/success}}
depends_on:
- build
when:
status: [ success, failure ]