mirror of
https://github.com/thegeeklab/drone-docker-buildx.git
synced 2024-11-05 04:20:41 +00:00
28 lines
579 B
YAML
28 lines
579 B
YAML
pipeline:
|
|
test:
|
|
image: golang:1.6
|
|
environment:
|
|
- CGO_ENABLED=0
|
|
- GO15VENDOREXPERIMENT=1
|
|
- GOPATH=/drone
|
|
commands:
|
|
- go test -cover -coverprofile=coverage.out
|
|
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER"
|
|
docker:
|
|
storage_driver: overlay
|
|
repo: plugins/docker
|
|
tag: [ "latest", "1.0", "1" ]
|
|
when:
|
|
branch: master
|
|
event: push
|
|
|
|
plugin:
|
|
name: Docker
|
|
desc: Build and publish images to a Docker registry
|
|
type: publish
|
|
image: plugins/docker
|
|
labels:
|
|
- docker
|
|
- image
|
|
- container
|