From 3c6cdbcec54f84f0afe65bf8523618ae51974d89 Mon Sep 17 00:00:00 2001 From: Matti R Date: Tue, 12 Oct 2021 23:44:14 -0400 Subject: [PATCH] prelim to switch to woodpecker plugin --- .woodpecker/main.yml | 4 ++-- cmd/{drone-docker-buildx => docker-buildx}/config.go | 0 cmd/{drone-docker-buildx => docker-buildx}/main.go | 2 +- cmd/{drone-docker-buildx => docker-buildx}/tools.go | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename cmd/{drone-docker-buildx => docker-buildx}/config.go (100%) rename cmd/{drone-docker-buildx => docker-buildx}/main.go (97%) rename cmd/{drone-docker-buildx => docker-buildx}/tools.go (100%) 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