drone-docker-buildx/.drone.yml

32 lines
658 B
YAML
Raw Normal View History

workspace:
base: /go
2016-05-11 10:43:44 +02:00
pipeline:
2016-05-04 01:17:16 +02:00
test:
image: golang:1.6
2016-05-04 01:17:16 +02:00
environment:
- CGO_ENABLED=0
commands:
# 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
latest:
image: docker
2016-05-04 01:17:16 +02:00
repo: plugins/docker
tags: [ "latest", "1.0", "1" ]
2015-10-28 02:29:46 +01:00
when:
branch: master
event: push
2015-10-28 02:29:46 +01:00
2015-05-15 02:11:26 +02:00
plugin:
name: Docker
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