2015-05-15 00:19:57 +00:00
|
|
|
build:
|
2016-05-03 23:17:16 +00:00
|
|
|
test:
|
|
|
|
image: golang:1.5
|
|
|
|
environment:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
- GO15VENDOREXPERIMENT=1
|
|
|
|
commands:
|
|
|
|
- go vet
|
|
|
|
- go test -cover -coverprofile=coverage.out
|
|
|
|
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER"
|
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
|
2016-05-03 23:17:16 +00:00
|
|
|
repo: plugins/docker
|
2016-01-18 21:31:56 +00:00
|
|
|
tag: latest
|
2015-10-28 01:29:46 +00:00
|
|
|
when:
|
2016-05-03 23:34:08 +00:00
|
|
|
branch: release/0.5
|
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
|
2016-05-03 23:17:16 +00:00
|
|
|
image: plugins/docker
|
2015-05-15 00:11:26 +00:00
|
|
|
labels:
|
|
|
|
- docker
|
|
|
|
- image
|
|
|
|
- container
|