woodpecker-docker-buildx/.woodpecker/main.yml
2021-10-12 23:44:14 -04:00

11 lines
275 B
YAML

pipeline:
build:
image: golang:1.17
commands:
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
- go build -v -a -tags netgo ./cmd/docker-buildx
publish:
image: plugins/docker
repo: foo/bar