2015-11-03 19:31:25 +00:00
|
|
|
build:
|
|
|
|
image: golang:1.5
|
2016-01-22 22:07:06 +00:00
|
|
|
environment:
|
|
|
|
- CGO_ENABLED=0
|
2015-11-03 19:31:25 +00:00
|
|
|
commands:
|
2015-12-09 09:02:52 +00:00
|
|
|
- make deps
|
2016-01-01 11:57:45 +00:00
|
|
|
- make vet
|
2015-12-09 09:02:52 +00:00
|
|
|
- make build
|
|
|
|
- make test
|
2015-11-03 19:31:25 +00:00
|
|
|
|
|
|
|
publish:
|
2016-01-18 21:33:14 +00:00
|
|
|
coverage:
|
|
|
|
when:
|
|
|
|
branch: master
|
2015-11-03 19:31:25 +00:00
|
|
|
docker:
|
2016-01-14 23:40:54 +00:00
|
|
|
username: $$DOCKER_USER
|
2015-11-03 19:31:25 +00:00
|
|
|
password: $$DOCKER_PASS
|
|
|
|
email: $$DOCKER_EMAIL
|
|
|
|
repo: plugins/drone-webhook
|
2016-01-18 21:33:14 +00:00
|
|
|
tag: latest
|
2015-11-03 19:31:25 +00:00
|
|
|
when:
|
|
|
|
branch: master
|
2016-01-18 21:33:14 +00:00
|
|
|
docker:
|
|
|
|
username: $$DOCKER_USER
|
|
|
|
password: $$DOCKER_PASS
|
|
|
|
email: $$DOCKER_EMAIL
|
|
|
|
repo: plugins/drone-webhook
|
|
|
|
tag: develop
|
|
|
|
when:
|
|
|
|
branch: develop
|
2015-11-03 19:31:25 +00:00
|
|
|
|
|
|
|
plugin:
|
|
|
|
name: Webhook
|
2015-12-09 09:02:52 +00:00
|
|
|
desc: Send build status notifications via Webhook
|
2015-11-03 19:31:25 +00:00
|
|
|
type: notify
|
|
|
|
image: plugins/drone-webhook
|
|
|
|
labels:
|
2015-12-09 09:02:52 +00:00
|
|
|
- notify
|
|
|
|
- webhook
|
2015-11-03 19:31:25 +00:00
|
|
|
- rest
|
|
|
|
- json
|
|
|
|
- hook
|