mirror of
https://github.com/thegeeklab/wp-docker-buildx.git
synced 2024-11-13 22:50:41 +00:00
33 lines
630 B
YAML
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
|