2016-05-11 10:43:44 +02:00
|
|
|
pipeline:
|
2016-05-04 01:17:16 +02:00
|
|
|
test:
|
2016-05-04 21:51:06 +02:00
|
|
|
image: golang:1.6
|
2016-05-04 01:17:16 +02:00
|
|
|
environment:
|
|
|
|
- CGO_ENABLED=0
|
2016-05-04 22:05:11 +02:00
|
|
|
- GO15VENDOREXPERIMENT=1
|
2016-05-04 22:25:43 +02:00
|
|
|
- GOPATH=/drone
|
2016-05-04 01:17:16 +02:00
|
|
|
commands:
|
|
|
|
- go test -cover -coverprofile=coverage.out
|
|
|
|
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER"
|
2015-10-28 02:29:46 +01:00
|
|
|
docker:
|
2016-06-03 20:42:20 +02:00
|
|
|
storage_driver: vfs
|
2016-05-04 01:17:16 +02:00
|
|
|
repo: plugins/docker
|
2016-05-04 22:02:37 +02:00
|
|
|
tag: [ "latest", "1.0", "1" ]
|
2015-10-28 02:29:46 +01:00
|
|
|
when:
|
|
|
|
branch: master
|
2016-05-04 21:51:06 +02:00
|
|
|
event: push
|
2015-10-28 02:29:46 +01:00
|
|
|
|
2015-05-15 02:11:26 +02:00
|
|
|
plugin:
|
|
|
|
name: Docker
|
2016-01-18 22:31:56 +01:00
|
|
|
desc: Build and publish images to a Docker registry
|
2015-05-15 02:11:26 +02:00
|
|
|
type: publish
|
2016-05-04 01:17:16 +02:00
|
|
|
image: plugins/docker
|
2015-05-15 02:11:26 +02:00
|
|
|
labels:
|
|
|
|
- docker
|
|
|
|
- image
|
|
|
|
- container
|