diff --git a/.drone.windows.yml b/.drone.windows.yml index 5d2f8cc..162d147 100644 --- a/.drone.windows.yml +++ b/.drone.windows.yml @@ -10,7 +10,7 @@ platform: steps: - name: vet pull: always - image: golang:1.18.3-windowsservercore-1803 + image: golang:1.20.14-windowsservercore-1803 commands: - go vet ./... environment: @@ -21,7 +21,7 @@ steps: - name: test pull: always - image: golang:1.18.3-windowsservercore-1803 + image: golang:1.20.14-windowsservercore-1803 commands: - go test -cover ./... environment: @@ -52,7 +52,7 @@ platform: steps: - name: build-push pull: always - image: golang:1.18.3-windowsservercore-1803 + image: golang:1.20.14-windowsservercore-1803 commands: - "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/windows/amd64/drone-hugo.exe" environment: @@ -65,7 +65,7 @@ steps: - name: build-tag pull: always - image: golang:1.18.3-windowsservercore-1803 + image: golang:1.20.14-windowsservercore-1803 commands: - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/windows/amd64/drone-hugo.exe" environment: @@ -77,7 +77,7 @@ steps: - name: executable pull: always - image: golang:1.18.3-windowsservercore-1803 + image: golang:1.20.14-windowsservercore-1803 commands: - ./release/windows/amd64/drone-hugo.exe --help @@ -148,7 +148,7 @@ platform: steps: - name: build-push pull: always - image: golang:1.18.3-windowsservercore-1809 + image: golang:1.20.14-windowsservercore-1809 commands: - "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/windows/amd64/drone-hugo.exe" environment: @@ -161,7 +161,7 @@ steps: - name: build-tag pull: always - image: golang:1.18.3-windowsservercore-1809 + image: golang:1.20.14-windowsservercore-1809 commands: - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/windows/amd64/drone-hugo.exe" environment: @@ -173,7 +173,7 @@ steps: - name: executable pull: always - image: golang:1.18.3-windowsservercore-1809 + image: golang:1.20.14-windowsservercore-1809 commands: - ./release/windows/amd64/drone-hugo.exe --help diff --git a/.drone.yml b/.drone.yml index df2be01..13a556b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,7 +9,7 @@ platform: steps: - name: vet pull: always - image: golang:1.18.3 + image: golang:1.20.14 commands: - go vet ./... environment: @@ -20,7 +20,7 @@ steps: - name: test pull: always - image: golang:1.18.3 + image: golang:1.20.14 commands: - go test -cover ./... environment: @@ -50,7 +50,7 @@ platform: steps: - name: build-push pull: always - image: golang:1.18.3 + image: golang:1.20.14 commands: - "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/amd64/drone-hugo" environment: @@ -63,7 +63,7 @@ steps: - name: build-tag pull: always - image: golang:1.18.3 + image: golang:1.20.14 commands: - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/amd64/drone-hugo" environment: @@ -75,7 +75,7 @@ steps: - name: executable pull: always - image: golang:1.18.3 + image: golang:1.20.14 commands: - ./release/linux/amd64/drone-hugo --help @@ -134,7 +134,7 @@ platform: steps: - name: build-push pull: always - image: golang:1.18.3 + image: golang:1.20.14 commands: - "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/arm64/drone-hugo" environment: @@ -147,7 +147,7 @@ steps: - name: build-tag pull: always - image: golang:1.18.3 + image: golang:1.20.14 commands: - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/arm64/drone-hugo" environment: @@ -159,7 +159,7 @@ steps: - name: executable pull: always - image: golang:1.18.3 + image: golang:1.20.14 commands: - ./release/linux/arm64/drone-hugo --help @@ -218,7 +218,7 @@ platform: steps: - name: build-push pull: always - image: golang:1.18.3 + image: golang:1.20.14 commands: - "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/arm/drone-hugo" environment: @@ -231,7 +231,7 @@ steps: - name: build-tag pull: always - image: golang:1.18.3 + image: golang:1.20.14 commands: - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/arm/drone-hugo" environment: @@ -243,7 +243,7 @@ steps: - name: executable pull: always - image: golang:1.18.3 + image: golang:1.20.14 commands: - ./release/linux/arm/drone-hugo --help diff --git a/docker/Dockerfile.linux.amd64 b/docker/Dockerfile.linux.amd64 index 090d4bc..56d440b 100644 --- a/docker/Dockerfile.linux.amd64 +++ b/docker/Dockerfile.linux.amd64 @@ -1,4 +1,4 @@ -ARG GO_VERSION=1.18.3 +ARG GO_VERSION=1.20.14 FROM amd64/golang:$GO_VERSION-alpine AS build diff --git a/docker/Dockerfile.linux.arm b/docker/Dockerfile.linux.arm index 0b7f226..586cdc5 100644 --- a/docker/Dockerfile.linux.arm +++ b/docker/Dockerfile.linux.arm @@ -1,4 +1,4 @@ -ARG GO_VERSION=1.18.3 +ARG GO_VERSION=1.20.14 FROM arm32v6/golang:$GO_VERSION-alpine AS build diff --git a/docker/Dockerfile.linux.arm64 b/docker/Dockerfile.linux.arm64 index ebdf413..0dbabec 100644 --- a/docker/Dockerfile.linux.arm64 +++ b/docker/Dockerfile.linux.arm64 @@ -1,4 +1,4 @@ -ARG GO_VERSION=1.18.3 +ARG GO_VERSION=1.20.14 FROM arm64v8/golang:$GO_VERSION-alpine AS build diff --git a/go.mod b/go.mod index b4e8482..469c2a2 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,8 @@ module github.com/drone-plugins/drone-hugo -go 1.18 +go 1.19 -require ( - github.com/urfave/cli v1.22.9 -) +require github.com/urfave/cli v1.22.9 require ( github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect diff --git a/pipeline.libsonnet b/pipeline.libsonnet index 7f3225b..1e7704a 100644 --- a/pipeline.libsonnet +++ b/pipeline.libsonnet @@ -5,7 +5,7 @@ local test_pipeline_name = 'testing'; local windows(os) = os == 'windows'; local golang_image(os, version) = - 'golang:' + '1.14' + if windows(os) then '-windowsservercore-' + version else ''; + 'golang:' + '1.20' + if windows(os) then '-windowsservercore-' + version else ''; { test(os='linux', arch='amd64', version='')::