drone-docker-buildx/.drone.yml

33 lines
630 B
YAML
Raw Normal View History

2015-05-15 02:19:57 +02:00
build:
2016-05-04 01:17:16 +02:00
test:
image: golang:1.5
environment:
- CGO_ENABLED=0
- GO15VENDOREXPERIMENT=1
commands:
- go test -cover -coverprofile=coverage.out
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER"
2015-05-15 02:11:26 +02:00
2015-10-28 02:29:46 +01:00
publish:
coverage:
when:
branch: master
2015-10-28 02:29:46 +01:00
docker:
username: $$DOCKER_USER
2015-10-28 02:29:46 +01:00
password: $$DOCKER_PASS
email: $$DOCKER_EMAIL
2016-05-04 01:17:16 +02:00
repo: plugins/docker
tag: latest
2015-10-28 02:29:46 +01:00
when:
2016-05-04 01:34:08 +02:00
branch: release/0.5
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