diff --git a/.drone.yml b/.drone.yml index afecd70..d7894b5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ platform: steps: - name: vet - image: golang:1.19 + image: golang:1.22 commands: - go vet ./... environment: @@ -45,7 +45,7 @@ platform: steps: - name: go build - image: golang:1.19 + image: golang:1.22 environment: CGO_ENABLED: 0 commands: @@ -87,7 +87,7 @@ platform: steps: - name: go build - image: golang:1.19 + image: golang:1.22 environment: CGO_ENABLED: 0 commands: @@ -130,7 +130,7 @@ platform: steps: - name: build-push - image: golang:1.19 + image: golang:1.22 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.19 + image: golang:1.22 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.19 + image: golang:1.22 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.19 + image: golang:1.22 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.19 + image: golang:1.22 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/go.mod b/go.mod index 8bede5a..ed8c865 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,11 @@ module github.com/drone-plugins/drone-buildx-gar -go 1.21 +go 1.22 + +toolchain go1.22.0 require ( - github.com/drone-plugins/drone-buildx v1.1.19 + github.com/drone-plugins/drone-buildx v1.1.24 github.com/joho/godotenv v1.5.1 github.com/sirupsen/logrus v1.9.0 golang.org/x/oauth2 v0.13.0 diff --git a/go.sum b/go.sum index fb479bf..a2ff4fd 100644 --- a/go.sum +++ b/go.sum @@ -16,8 +16,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/drone-plugins/drone-buildx v1.1.19 h1:/6Z+FX1RF8+n5frvtCy/GZGCO0M5U3qRIITqDqkricA= -github.com/drone-plugins/drone-buildx v1.1.19/go.mod h1:TR1qqwMYXpe38qHb7am2FFIF/Y0yRucen9BMv35AR00= +github.com/drone-plugins/drone-buildx v1.1.24 h1:DviIwAItvze5IM8L09kVxFXsWoFlVjErbz2QDtbU3iI= +github.com/drone-plugins/drone-buildx v1.1.24/go.mod h1:RvpdpL5Ho1rY7kG2td+0Mcle7A81ozBEl6jc1F6m6a8= github.com/drone-plugins/drone-plugin-lib v0.4.2 h1:EiJ3Kco6ypP5noBQqVt1bBbuO1eUAumtPvLTX/NVAYg= github.com/drone-plugins/drone-plugin-lib v0.4.2/go.mod h1:KwCu92jFjHV3xv2hu5Qg/8zBNvGwbhoJDQw/EwnTvoM= github.com/drone/drone-go v1.7.1 h1:ZX+3Rs8YHUSUQ5mkuMLmm1zr1ttiiE2YGNxF3AnyDKw=