build go binary in docker

This commit is contained in:
Matti R
2021-10-13 01:14:04 -04:00
parent 3c6cdbcec5
commit 746e878ffc
2 changed files with 11 additions and 16 deletions

View File

@@ -1,10 +1,4 @@
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