build go binary in docker
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user