mirror of
https://github.com/thegeeklab/wp-docker-buildx.git
synced 2024-11-09 17:20:39 +00:00
31 lines
513 B
YAML
31 lines
513 B
YAML
build:
|
|
image: golang:1.5
|
|
environment:
|
|
- GO15VENDOREXPERIMENT=1
|
|
- GOOS=linux
|
|
- GOARCH=amd64
|
|
- CGO_ENABLED=0
|
|
commands:
|
|
- go get
|
|
- go build
|
|
- go test
|
|
|
|
publish:
|
|
docker:
|
|
username: drone
|
|
password: $$DOCKER_PASS
|
|
email: $$DOCKER_EMAIL
|
|
repo: plugins/drone-docker
|
|
when:
|
|
branch: master
|
|
|
|
plugin:
|
|
name: Docker
|
|
desc: Build and Publish images to a Docker registry.
|
|
type: publish
|
|
image: plugins/drone-docker
|
|
labels:
|
|
- docker
|
|
- image
|
|
- container
|