2015-11-23 00:07:57 +00:00
|
|
|
build:
|
|
|
|
image: golang:1.5
|
2016-01-18 21:32:19 +00:00
|
|
|
environment:
|
|
|
|
- CGO_ENABLED=0
|
2015-11-23 00:07:57 +00:00
|
|
|
commands:
|
2015-12-23 14:17:14 +00:00
|
|
|
- make deps
|
2016-01-18 21:32:19 +00:00
|
|
|
- make vet
|
2015-12-23 14:17:14 +00:00
|
|
|
- make build
|
|
|
|
- make test
|
2015-11-23 00:07:57 +00:00
|
|
|
|
|
|
|
publish:
|
2016-01-18 21:32:19 +00:00
|
|
|
coverage:
|
|
|
|
when:
|
|
|
|
branch: master
|
2015-11-23 00:07:57 +00:00
|
|
|
docker:
|
2016-01-18 21:32:19 +00:00
|
|
|
username: $$DOCKER_USER
|
2015-11-23 00:07:57 +00:00
|
|
|
password: $$DOCKER_PASS
|
|
|
|
email: $$DOCKER_EMAIL
|
|
|
|
repo: plugins/drone-github-release
|
2016-01-18 21:32:19 +00:00
|
|
|
tag: latest
|
2015-11-23 00:07:57 +00:00
|
|
|
when:
|
|
|
|
branch: master
|
2016-01-18 21:32:19 +00:00
|
|
|
docker:
|
|
|
|
username: $$DOCKER_USER
|
|
|
|
password: $$DOCKER_PASS
|
|
|
|
email: $$DOCKER_EMAIL
|
|
|
|
repo: plugins/drone-github-release
|
|
|
|
tag: develop
|
|
|
|
when:
|
|
|
|
branch: develop
|
2015-11-23 00:07:57 +00:00
|
|
|
|
|
|
|
plugin:
|
|
|
|
name: GitHub Release
|
2016-01-18 21:32:19 +00:00
|
|
|
desc: Publish files and artifacts to GitHub Releases
|
2015-11-23 00:07:57 +00:00
|
|
|
type: publish
|
|
|
|
image: plugins/drone-github-release
|
|
|
|
labels:
|
|
|
|
- github
|
|
|
|
- release
|