Skip to content

Commit b27e1a0

Browse files
committed
Update drone build
Use `golang:1.20` for the images. Remove static check as its covered by golang-ci.
1 parent 7490aab commit b27e1a0

File tree

1 file changed

+14
-23
lines changed

1 file changed

+14
-23
lines changed

.drone.yml

+14-23
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,8 @@ pool:
88
use: ubuntu
99

1010
steps:
11-
- name: static check
12-
image: golang:1.19
13-
pull: always
14-
commands:
15-
- go get honnef.co/go/tools/cmd/staticcheck
16-
- go run honnef.co/go/tools/cmd/staticcheck ./...
17-
volumes:
18-
- name: gopath
19-
path: "/go"
2011
- name: lint
21-
image: golang:1.19
12+
image: golang:1.20
2213
pull: always
2314
commands:
2415
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
@@ -28,7 +19,7 @@ steps:
2819
- name: gopath
2920
path: "/go"
3021
- name: test
31-
image: golang:1.19
22+
image: golang:1.20
3223
commands:
3324
- go test -cover ./...
3425
volumes:
@@ -55,21 +46,21 @@ pool:
5546

5647
steps:
5748
- name: environment
58-
image: golang:1.19
49+
image: golang:1.20
5950
pull: always
6051
environment:
6152
CGO_ENABLED: "0"
6253
commands:
6354
- go version
6455
- go env
6556
- name: build
66-
image: golang:1.19
57+
image: golang:1.20
6758
environment:
6859
CGO_ENABLED: "0"
6960
commands:
7061
- go build -v -ldflags "-X main.version=" -a -tags netgo -o release/linux/amd64/drone-github-release ./cmd/drone-github-release
7162
- name: executable
72-
image: golang:1.19
63+
image: golang:1.20
7364
commands:
7465
- ./release/linux/amd64/drone-github-release --help
7566
- name: docker
@@ -107,21 +98,21 @@ pool:
10798

10899
steps:
109100
- name: environment
110-
image: golang:1.19
101+
image: golang:1.20
111102
pull: always
112103
environment:
113104
CGO_ENABLED: "0"
114105
commands:
115106
- go version
116107
- go env
117108
- name: build
118-
image: golang:1.19
109+
image: golang:1.20
119110
environment:
120111
CGO_ENABLED: "0"
121112
commands:
122113
- go build -v -ldflags "-X main.version=" -a -tags netgo -o release/linux/arm64/drone-github-release ./cmd/drone-github-release
123114
- name: executable
124-
image: golang:1.19
115+
image: golang:1.20
125116
commands:
126117
- ./release/linux/arm64/drone-github-release --help
127118
- name: docker
@@ -159,21 +150,21 @@ pool:
159150

160151
steps:
161152
- name: environment
162-
image: golang:1.19
153+
image: golang:1.20
163154
pull: always
164155
environment:
165156
CGO_ENABLED: "0"
166157
commands:
167158
- go version
168159
- go env
169160
- name: build
170-
image: golang:1.19
161+
image: golang:1.20
171162
environment:
172163
CGO_ENABLED: "0"
173164
commands:
174165
- go build -v -ldflags "-X main.version=" -a -tags netgo -o release/windows/amd64/drone-github-release.exe ./cmd/drone-github-release
175166
- name: executable
176-
image: golang:1.19
167+
image: golang:1.20
177168
commands:
178169
- ./release/windows/amd64/drone-github-release.exe --help
179170
- name: docker
@@ -213,21 +204,21 @@ pool:
213204

214205
steps:
215206
- name: environment
216-
image: golang:1.19
207+
image: golang:1.20
217208
pull: always
218209
environment:
219210
CGO_ENABLED: "0"
220211
commands:
221212
- go version
222213
- go env
223214
- name: build
224-
image: golang:1.19
215+
image: golang:1.20
225216
environment:
226217
CGO_ENABLED: "0"
227218
commands:
228219
- go build -v -ldflags "-X main.version=" -a -tags netgo -o release/windows/amd64/drone-github-release.exe ./cmd/drone-github-release
229220
- name: executable
230-
image: golang:1.19
221+
image: golang:1.20
231222
commands:
232223
- ./release/windows/amd64/drone-github-release.exe --help
233224
- name: docker

0 commit comments

Comments
 (0)