drone-docker-buildx/.drone.yml
2016-12-29 11:37:13 -05:00

23 lines
549 B
YAML

workspace:
base: /go
path: src/github.com/drone-plugins/drone-docker
pipeline:
test:
image: golang:1.6
environment:
- CGO_ENABLED=0
commands:
# Disabled: main.go:99: cli.StringSlice composite literal uses unkeyed fields
# - go vet
- go test -cover -coverprofile=coverage.out
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a -tags netgo
publish:
image: plugins/docker
repo: plugins/docker
tags: [ "latest", "1.12", "1" ]
when:
branch: master
event: push