From b27e1a09380a842d9e9cc85c490589235643eb6a Mon Sep 17 00:00:00 2001 From: Don Olmstead Date: Thu, 16 Mar 2023 11:32:55 -0700 Subject: [PATCH] Update drone build Use `golang:1.20` for the images. Remove static check as its covered by golang-ci. --- .drone.yml | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4a80f2f66..8d2775237 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,17 +8,8 @@ pool: use: ubuntu steps: - - name: static check - image: golang:1.19 - pull: always - commands: - - go get honnef.co/go/tools/cmd/staticcheck - - go run honnef.co/go/tools/cmd/staticcheck ./... - volumes: - - name: gopath - path: "/go" - name: lint - image: golang:1.19 + image: golang:1.20 pull: always commands: - go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest @@ -28,7 +19,7 @@ steps: - name: gopath path: "/go" - name: test - image: golang:1.19 + image: golang:1.20 commands: - go test -cover ./... volumes: @@ -55,7 +46,7 @@ pool: steps: - name: environment - image: golang:1.19 + image: golang:1.20 pull: always environment: CGO_ENABLED: "0" @@ -63,13 +54,13 @@ steps: - go version - go env - name: build - image: golang:1.19 + image: golang:1.20 environment: CGO_ENABLED: "0" commands: - go build -v -ldflags "-X main.version=" -a -tags netgo -o release/linux/amd64/drone-github-release ./cmd/drone-github-release - name: executable - image: golang:1.19 + image: golang:1.20 commands: - ./release/linux/amd64/drone-github-release --help - name: docker @@ -107,7 +98,7 @@ pool: steps: - name: environment - image: golang:1.19 + image: golang:1.20 pull: always environment: CGO_ENABLED: "0" @@ -115,13 +106,13 @@ steps: - go version - go env - name: build - image: golang:1.19 + image: golang:1.20 environment: CGO_ENABLED: "0" commands: - go build -v -ldflags "-X main.version=" -a -tags netgo -o release/linux/arm64/drone-github-release ./cmd/drone-github-release - name: executable - image: golang:1.19 + image: golang:1.20 commands: - ./release/linux/arm64/drone-github-release --help - name: docker @@ -159,7 +150,7 @@ pool: steps: - name: environment - image: golang:1.19 + image: golang:1.20 pull: always environment: CGO_ENABLED: "0" @@ -167,13 +158,13 @@ steps: - go version - go env - name: build - image: golang:1.19 + image: golang:1.20 environment: CGO_ENABLED: "0" commands: - go build -v -ldflags "-X main.version=" -a -tags netgo -o release/windows/amd64/drone-github-release.exe ./cmd/drone-github-release - name: executable - image: golang:1.19 + image: golang:1.20 commands: - ./release/windows/amd64/drone-github-release.exe --help - name: docker @@ -213,7 +204,7 @@ pool: steps: - name: environment - image: golang:1.19 + image: golang:1.20 pull: always environment: CGO_ENABLED: "0" @@ -221,13 +212,13 @@ steps: - go version - go env - name: build - image: golang:1.19 + image: golang:1.20 environment: CGO_ENABLED: "0" commands: - go build -v -ldflags "-X main.version=" -a -tags netgo -o release/windows/amd64/drone-github-release.exe ./cmd/drone-github-release - name: executable - image: golang:1.19 + image: golang:1.20 commands: - ./release/windows/amd64/drone-github-release.exe --help - name: docker