mirror of
https://github.com/thegeeklab/wp-docker-buildx.git
synced 2024-11-13 22:50:41 +00:00
31 lines
557 B
YAML
31 lines
557 B
YAML
workspace:
|
|
base: /go
|
|
|
|
pipeline:
|
|
test:
|
|
image: golang:1.6
|
|
environment:
|
|
- CGO_ENABLED=0
|
|
commands:
|
|
- go vet
|
|
- go test -cover -coverprofile=coverage.out
|
|
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER"
|
|
|
|
latest:
|
|
image: docker
|
|
repo: plugins/docker
|
|
tags: [ "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
|