Skip to content

Commit

Permalink
Merge branch 'master' into update-deps-2023-03
Browse files Browse the repository at this point in the history
  • Loading branch information
TP Honey authored Mar 20, 2023
2 parents 59623bb + 5cd8ef1 commit de9916a
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -28,7 +19,7 @@ steps:
- name: gopath
path: "/go"
- name: test
image: golang:1.19
image: golang:1.20
commands:
- go test -cover ./...
volumes:
Expand All @@ -55,21 +46,21 @@ pool:

steps:
- name: environment
image: golang:1.19
image: golang:1.20
pull: always
environment:
CGO_ENABLED: "0"
commands:
- 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
Expand Down Expand Up @@ -107,21 +98,21 @@ pool:

steps:
- name: environment
image: golang:1.19
image: golang:1.20
pull: always
environment:
CGO_ENABLED: "0"
commands:
- 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
Expand Down Expand Up @@ -159,21 +150,21 @@ pool:

steps:
- name: environment
image: golang:1.19
image: golang:1.20
pull: always
environment:
CGO_ENABLED: "0"
commands:
- 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
Expand Down Expand Up @@ -213,21 +204,21 @@ pool:

steps:
- name: environment
image: golang:1.19
image: golang:1.20
pull: always
environment:
CGO_ENABLED: "0"
commands:
- 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
Expand Down

0 comments on commit de9916a

Please sign in to comment.