diff --git a/.drone.yml b/.drone.yml index d7894b5..1cba823 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ platform: steps: - name: vet - image: golang:1.22 + image: golang:1.23 commands: - go vet ./... environment: @@ -45,7 +45,7 @@ platform: steps: - name: go build - image: golang:1.22 + image: golang:1.23 environment: CGO_ENABLED: 0 commands: @@ -87,7 +87,7 @@ platform: steps: - name: go build - image: golang:1.22 + image: golang:1.23 environment: CGO_ENABLED: 0 commands: @@ -130,7 +130,7 @@ platform: steps: - name: build-push - image: golang:1.22 + image: golang:1.23 commands: - 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/amd64/buildx-gar ./cmd/drone-buildx-gar' environment: @@ -140,7 +140,7 @@ steps: exclude: - tag - name: build-tag - image: golang:1.22 + image: golang:1.23 commands: - 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/amd64/buildx-gar ./cmd/drone-buildx-gar' environment: @@ -188,7 +188,7 @@ platform: steps: - name: build-push - image: golang:1.22 + image: golang:1.23 commands: - 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/arm64/buildx-gar ./cmd/drone-buildx-gar' environment: @@ -199,7 +199,7 @@ steps: - tag - name: build-tag - image: golang:1.22 + image: golang:1.23 commands: - 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/arm64/buildx-gar ./cmd/drone-buildx-gar' environment: @@ -280,7 +280,7 @@ pool: steps: - name: build pull: always - image: golang:1.22 + image: golang:1.23 commands: - GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-buildx-gar-linux-amd64 ./cmd/drone-buildx-gar - GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-buildx-gar-linux-arm64 ./cmd/drone-buildx-gar diff --git a/.harness/harness.yaml b/.harness/harness.yaml index 6a89fe3..9748495 100644 --- a/.harness/harness.yaml +++ b/.harness/harness.yaml @@ -36,7 +36,7 @@ pipeline: identifier: Vet spec: connectorRef: Plugins_Docker_Hub_Connector - image: golang:1.22 + image: golang:1.23 shell: Sh command: go vet ./... variables: @@ -64,7 +64,7 @@ pipeline: identifier: Build spec: connectorRef: Plugins_Docker_Hub_Connector - image: golang:1.22 + image: golang:1.23 shell: Sh command: |- # force go modules @@ -152,7 +152,7 @@ pipeline: identifier: Build spec: connectorRef: Plugins_Docker_Hub_Connector - image: golang:1.22 + image: golang:1.23 shell: Sh command: |- # force go modules @@ -231,7 +231,7 @@ pipeline: identifier: Build_Push spec: connectorRef: Plugins_Docker_Hub_Connector - image: golang:1.22 + image: golang:1.23 shell: Sh command: |- # force go modules @@ -256,7 +256,7 @@ pipeline: identifier: Build_Tag spec: connectorRef: Plugins_Docker_Hub_Connector - image: golang:1.22 + image: golang:1.23 shell: Sh command: |- # force go modules @@ -338,7 +338,7 @@ pipeline: identifier: Build_Push spec: connectorRef: Plugins_Docker_Hub_Connector - image: golang:1.22 + image: golang:1.23 shell: Sh command: |- # force go modules @@ -363,7 +363,7 @@ pipeline: identifier: Build_Tag spec: connectorRef: Plugins_Docker_Hub_Connector - image: golang:1.22 + image: golang:1.23 shell: Sh command: |- # force go modules @@ -461,7 +461,7 @@ pipeline: identifier: Build spec: connectorRef: Plugins_Docker_Hub_Connector - image: golang:1.22 + image: golang:1.23 shell: Sh command: |- GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-buildx-gar-linux-amd64 ./cmd/drone-buildx-gar diff --git a/docker/gar/Dockerfile.linux.amd64 b/docker/gar/Dockerfile.linux.amd64 index eb6a942..632e4bc 100644 --- a/docker/gar/Dockerfile.linux.amd64 +++ b/docker/gar/Dockerfile.linux.amd64 @@ -1,4 +1,4 @@ -FROM plugins/buildx:linux-amd64 +FROM plugins/buildx:1.3.2-linux-amd64 ADD release/linux/amd64/buildx-gar /bin/ ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh", "/bin/buildx-gar"] diff --git a/docker/gar/Dockerfile.linux.arm64 b/docker/gar/Dockerfile.linux.arm64 index c8c7969..9c9854f 100644 --- a/docker/gar/Dockerfile.linux.arm64 +++ b/docker/gar/Dockerfile.linux.arm64 @@ -1,4 +1,4 @@ -FROM plugins/buildx:linux-arm64 +FROM plugins/buildx:1.3.2-linux-arm64 ADD release/linux/arm64/buildx-gar /bin/ ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh", "/bin/buildx-gar"] diff --git a/drone-buildx-gar b/drone-buildx-gar new file mode 100755 index 0000000..5926454 Binary files /dev/null and b/drone-buildx-gar differ diff --git a/go.mod b/go.mod index 4a138f3..1326b45 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/drone-plugins/drone-buildx-gar -go 1.22 +go 1.23 toolchain go1.22.0 diff --git a/release/linux/amd64/buildx-gar b/release/linux/amd64/buildx-gar new file mode 100755 index 0000000..862661f Binary files /dev/null and b/release/linux/amd64/buildx-gar differ