0
0
mirror of https://github.com/thegeeklab/wp-docker-buildx.git synced 2024-11-13 22:50:41 +00:00
wp-docker-buildx/.drone.yml
2016-05-03 16:37:12 -07:00

33 lines
630 B
YAML

build:
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"
publish:
coverage:
when:
branch: master
docker:
username: $$DOCKER_USER
password: $$DOCKER_PASS
email: $$DOCKER_EMAIL
repo: plugins/docker
tag: latest
when:
branch: release/0.5
plugin:
name: Docker
desc: Build and publish images to a Docker registry
type: publish
image: plugins/docker
labels:
- docker
- image
- container