woodpecker-docker-buildx/.drone.yml

32 lines
641 B
YAML
Raw Normal View History

workspace:
base: /go
2016-05-04 20:05:11 +00:00
path: src/github.com/drone-plugins/drone-docker
2015-05-15 00:11:26 +00:00
script:
2016-05-03 23:17:16 +00:00
test:
image: golang:1.6
2016-05-03 23:17:16 +00:00
environment:
- CGO_ENABLED=0
2016-05-04 20:05:11 +00:00
- GO15VENDOREXPERIMENT=1
2016-05-03 23:17:16 +00:00
commands:
2016-05-04 20:05:11 +00:00
- pwd
2016-05-03 23:17:16 +00:00
- go test -cover -coverprofile=coverage.out
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER"
2015-10-28 01:29:46 +00:00
docker:
storage_driver: overlay
2016-05-03 23:17:16 +00:00
repo: plugins/docker
2016-05-04 20:02:37 +00:00
tag: [ "latest", "1.0", "1" ]
2015-10-28 01:29:46 +00:00
when:
branch: master
event: push
2015-10-28 01:29:46 +00:00
2015-05-15 00:11:26 +00:00
plugin:
name: Docker
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