diff --git a/.woodpecker/main.yml b/.woodpecker/main.yml index 5e5fd09..50e50a3 100644 --- a/.woodpecker/main.yml +++ b/.woodpecker/main.yml @@ -2,8 +2,8 @@ pipeline: build: image: golang:1.17 commands: - - go build - - go test + - "[ -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 diff --git a/cmd/drone-docker-buildx/config.go b/cmd/docker-buildx/config.go similarity index 100% rename from cmd/drone-docker-buildx/config.go rename to cmd/docker-buildx/config.go diff --git a/cmd/drone-docker-buildx/main.go b/cmd/docker-buildx/main.go similarity index 97% rename from cmd/drone-docker-buildx/main.go rename to cmd/docker-buildx/main.go index 4e835f6..c936baa 100644 --- a/cmd/drone-docker-buildx/main.go +++ b/cmd/docker-buildx/main.go @@ -21,7 +21,7 @@ func main() { } app := &cli.App{ - Name: "drone-docker-buildx", + Name: "docker-buildx", Usage: "build docker container with DinD and buildx", Version: version, Flags: append(settingsFlags(settings), urfave.Flags()...), diff --git a/cmd/drone-docker-buildx/tools.go b/cmd/docker-buildx/tools.go similarity index 100% rename from cmd/drone-docker-buildx/tools.go rename to cmd/docker-buildx/tools.go