forked from metalmatze/githubql_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.drone.yml
More file actions
44 lines (39 loc) · 814 Bytes
/
.drone.yml
File metadata and controls
44 lines (39 loc) · 814 Bytes
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
workspace:
base: /go
path: src/github.com/metalmatze/githubql_exporter
pipeline:
build:
image: golang:1.8
commands:
- make fmt
- make vet
- make lint
- make test
- make build
docker:
image: plugins/docker
repo: metalmatze/githubql_exporter
secrets: [ docker_username, docker_password ]
tag: [ latest ]
when:
branch: master
event: push
release:
image: golang:1.8
commands:
- make release
when:
event: tag
docker:
image: plugins/docker
repo: metalmatze/githubql_exporter
secrets: [ docker_username, docker_password ]
tag: [ 0, 0.1 ]
when:
event: tag
github:
image: plugins/github-release
secrets: [ github_release_api_key ]
files: dist/*
when:
event: tag