diff --git a/.drone.yml b/.drone.yml index c4c2bbbe..1085b352 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,7 +32,7 @@ steps: - name: build # there is an issue in golang 1.17.7-alpine3.15 -- with make files so using 1.17.3 here # https://gitlab.alpinelinux.org/alpine/aports/-/issues/12396 - image: golang:1.19-alpine3.16 + image: golang:1.20-alpine3.17 commands: - apk add --update make git - make drone-cache @@ -48,7 +48,7 @@ steps: # - golangci-lint run --timeout 500s --new-from-rev=HEAD~ - name: test - image: golang:1.19-alpine3.16 + image: golang:1.20-alpine3.17 commands: - go test -mod=vendor -short -cover -tags=integration ./... environment: @@ -263,7 +263,7 @@ platform: steps: - name: build-push pull: always - image: golang:1.19 + image: golang:1.20 commands: - 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/drone-cache' environment: @@ -271,7 +271,7 @@ steps: GO111MODULE: on - name: build-tag pull: always - image: golang:1.19 + image: golang:1.20 commands: - 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/drone-cache' environment: @@ -318,7 +318,7 @@ platform: steps: - name: build-push pull: always - image: golang:1.19 + image: golang:1.20 commands: - 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm64/drone-cache' environment: @@ -326,7 +326,7 @@ steps: GO111MODULE: on - name: build-tag pull: always - image: golang:1.19 + image: golang:1.20 commands: - 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm64/drone-cache' environment: @@ -372,7 +372,7 @@ platform: steps: - name: build - image: golang:1.19 + image: golang:1.20 commands: - echo $env:DRONE_SEMVER_SHORT - go build -o release/windows/amd64/drone-cache.exe @@ -419,7 +419,7 @@ platform: steps: - name: build - image: golang:1.19 + image: golang:1.20 commands: - echo $env:DRONE_SEMVER_SHORT - go build -o release/windows/amd64/drone-cache.exe @@ -495,7 +495,7 @@ pool: steps: - name: build - image: golang:1.19 + image: golang:1.20 commands: - GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X main.version=${DRONE_TAG##v}" -o release/plugin-linux-amd64 - GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X main.version=${DRONE_TAG##v}" -o release/plugin-linux-arm64 diff --git a/docker/Dockerfile.linux.amd64 b/docker/Dockerfile.linux.amd64 index 1eb85b5d..64248a69 100644 --- a/docker/Dockerfile.linux.amd64 +++ b/docker/Dockerfile.linux.amd64 @@ -1,4 +1,4 @@ -FROM golang:1.17.3-alpine3.13 AS builder +FROM golang:1.20-alpine3.17 AS builder RUN apk add --update --no-cache ca-certificates tzdata && update-ca-certificates FROM scratch as runner diff --git a/docker/Dockerfile.linux.arm64 b/docker/Dockerfile.linux.arm64 index 3b67c8ef..ef3964a1 100644 --- a/docker/Dockerfile.linux.arm64 +++ b/docker/Dockerfile.linux.arm64 @@ -1,4 +1,4 @@ -FROM golang:1.17.3-alpine3.13 AS builder +FROM golang:1.20-alpine3.17 AS builder RUN apk add --update --no-cache ca-certificates tzdata && update-ca-certificates FROM scratch as runner diff --git a/go.mod b/go.mod index 0de15f42..86b35fdf 100644 --- a/go.mod +++ b/go.mod @@ -47,4 +47,4 @@ require ( gopkg.in/yaml.v2 v2.4.0 // indirect ) -go 1.19 +go 1.20