2015-05-15 00:19:57 +00:00
|
|
|
build:
|
2015-10-28 01:29:46 +00:00
|
|
|
image: golang:1.5
|
|
|
|
environment:
|
|
|
|
- CGO_ENABLED=0
|
2015-05-15 00:11:26 +00:00
|
|
|
commands:
|
2016-01-18 21:31:56 +00:00
|
|
|
- make deps
|
|
|
|
- make vet
|
|
|
|
- make build
|
|
|
|
- make test
|
2015-05-15 00:11:26 +00:00
|
|
|
|
2015-10-28 01:29:46 +00:00
|
|
|
publish:
|
2016-01-18 21:31:56 +00:00
|
|
|
coverage:
|
|
|
|
when:
|
|
|
|
branch: master
|
2015-10-28 01:29:46 +00:00
|
|
|
docker:
|
2016-01-18 21:31:56 +00:00
|
|
|
username: $$DOCKER_USER
|
2015-10-28 01:29:46 +00:00
|
|
|
password: $$DOCKER_PASS
|
|
|
|
email: $$DOCKER_EMAIL
|
|
|
|
repo: plugins/drone-docker
|
2016-01-18 21:31:56 +00:00
|
|
|
tag: latest
|
2015-10-28 01:29:46 +00:00
|
|
|
when:
|
|
|
|
branch: master
|
2016-01-18 21:31:56 +00:00
|
|
|
docker:
|
|
|
|
username: $$DOCKER_USER
|
|
|
|
password: $$DOCKER_PASS
|
|
|
|
email: $$DOCKER_EMAIL
|
|
|
|
repo: plugins/drone-docker
|
|
|
|
tag: develop
|
|
|
|
when:
|
|
|
|
branch: develop
|
2015-10-28 01:29:46 +00:00
|
|
|
|
2015-05-15 00:11:26 +00:00
|
|
|
plugin:
|
|
|
|
name: Docker
|
2016-01-18 21:31:56 +00:00
|
|
|
desc: Build and publish images to a Docker registry
|
2015-05-15 00:11:26 +00:00
|
|
|
type: publish
|
|
|
|
image: plugins/drone-docker
|
|
|
|
labels:
|
|
|
|
- docker
|
|
|
|
- image
|
|
|
|
- container
|