2016-07-22 19:36:15 +02:00
|
|
|
workspace:
|
|
|
|
base: /go
|
2016-10-27 23:42:45 +02:00
|
|
|
path: src/github.com/drone-plugins/drone-docker
|
2016-07-22 19:36:15 +02:00
|
|
|
|
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
|
|
|
|
commands:
|
2016-07-24 23:01:35 +02:00
|
|
|
# Disabled: main.go:99: cli.StringSlice composite literal uses unkeyed fields
|
|
|
|
# - go vet
|
2016-05-04 01:17:16 +02:00
|
|
|
- go test -cover -coverprofile=coverage.out
|
2016-07-23 01:11:18 +02:00
|
|
|
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a -tags netgo
|
2016-07-22 19:36:15 +02:00
|
|
|
|
2016-12-29 17:20:57 +01:00
|
|
|
publish:
|
2016-11-01 17:53:25 +01:00
|
|
|
image: plugins/docker
|
2016-05-04 01:17:16 +02:00
|
|
|
repo: plugins/docker
|
2016-12-29 17:20:57 +01:00
|
|
|
tags: [ "latest", "1.3", "1" ]
|
2015-10-28 02:29:46 +01:00
|
|
|
when:
|
|
|
|
branch: master
|
2016-05-04 21:51:06 +02:00
|
|
|
event: push
|