2016-07-22 17:36:15 +00:00
|
|
|
workspace:
|
|
|
|
base: /go
|
|
|
|
|
2016-05-11 08:43:44 +00:00
|
|
|
pipeline:
|
2016-05-03 23:17:16 +00:00
|
|
|
test:
|
2016-05-04 19:51:06 +00:00
|
|
|
image: golang:1.6
|
2016-05-03 23:17:16 +00:00
|
|
|
environment:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
commands:
|
2016-07-24 21:01:35 +00:00
|
|
|
# Disabled: main.go:99: cli.StringSlice composite literal uses unkeyed fields
|
|
|
|
# - go vet
|
2016-05-03 23:17:16 +00:00
|
|
|
- go test -cover -coverprofile=coverage.out
|
2016-07-22 23:11:18 +00:00
|
|
|
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a -tags netgo
|
2016-07-22 17:36:15 +00:00
|
|
|
|
|
|
|
latest:
|
|
|
|
image: docker
|
2016-05-03 23:17:16 +00:00
|
|
|
repo: plugins/docker
|
2016-07-22 17:36:15 +00:00
|
|
|
tags: [ "latest", "1.0", "1" ]
|
2015-10-28 01:29:46 +00:00
|
|
|
when:
|
|
|
|
branch: master
|
2016-05-04 19:51:06 +00:00
|
|
|
event: push
|
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
|