mirror of
https://github.com/thegeeklab/wp-docker-buildx.git
synced 2024-11-13 22:50:41 +00:00
7011e7797f
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
24 lines
601 B
YAML
24 lines
601 B
YAML
workspace:
|
|
base: /go
|
|
path: src/github.com/drone-plugins/drone-docker
|
|
|
|
pipeline:
|
|
test:
|
|
image: golang:1.6
|
|
environment:
|
|
- CGO_ENABLED=0
|
|
commands:
|
|
# Disabled: main.go:99: cli.StringSlice composite literal uses unkeyed fields
|
|
# - go vet
|
|
- go test -cover -coverprofile=coverage.out
|
|
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a -tags netgo
|
|
|
|
publish:
|
|
image: plugins/docker
|
|
repo: plugins/docker
|
|
tags: [ "latest", "17", "17.05" ]
|
|
secrets: [ docker_username, docker_password ]
|
|
when:
|
|
branch: master
|
|
event: push
|