forked from metalmatze/alertmanager-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
45 lines (40 loc) · 846 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
workspace:
base: /go
path: src/github.com/metalmatze/alertmanager-bot
pipeline:
dep:
image: metalmatze/dep:0.5.0
commands:
- dep ensure -v -vendor-only
build:
image: golang:1.10-alpine
pull: true
commands:
- apk add -U git make
- make fmt
- make vet
- make lint
- make test
- make build
when:
event: [ push, tag, pull_request ]
release:
image: golang:1.10-alpine
commands:
- apk add -U git make
- make release
when:
event: tag
docker:
image: plugins/docker
repo: metalmatze/alertmanager-bot
secrets: [ docker_username, docker_password ]
tag: [ latest, 0.3, 0.3.1 ]
when:
event: tag
github:
image: plugins/github-release
secrets: [ github_token ]
files: dist/*
when:
event: tag