-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy path.drone.yml
59 lines (54 loc) · 1.12 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
clone:
git:
image: plugins/git
path: /drone/src/gituhb.com/gocaio/Goca
pipeline:
test:
image: golang:${GO_VERSION}
environment:
- GOPATH=/drone
- GO111MODULE=on
commands:
- make deps
- make test
when:
branch: dev
build:
image: golang:${GO_VERSION}
environment:
- GOPATH=/drone
- GO111MODULE=on
commands:
- make deps
- make test
- make build
when:
branch: master
release:
image: plugins/github-release
secrets: [ github_api_key ]
settings:
api_key:
from_secret: github_api_key
files:
- build/*
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
when:
branch: master
telegram:
image: appleboy/drone-telegram
secrets: [ telegram_token, telegram_to ]
format: markdown
message: >
\[DRONE] {{uppercasefirst build.status}} build for commit [{{commit.message}} ({{truncate commit.sha 10}})]({{commit.link}}) by {{commit.author}}
when:
status: [success, failure]
matrix:
GO_VERSION:
- latest