[fix] Replaced regular golang image with lightweight alpine version
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
e5aac88664
commit
2bfeabb3b0
@ -4,8 +4,9 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: static_check
|
- name: static_check
|
||||||
image: golang:1.18
|
image: golang:alpine
|
||||||
commands:
|
commands:
|
||||||
|
- apk update && apk --no-cache add git gcc glibc
|
||||||
- go install honnef.co/go/tools/cmd/staticcheck@latest
|
- go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||||
- staticcheck ./pkg/...
|
- staticcheck ./pkg/...
|
||||||
volumes:
|
volumes:
|
||||||
@ -13,8 +14,9 @@ steps:
|
|||||||
path: /go
|
path: /go
|
||||||
|
|
||||||
- name: lint
|
- name: lint
|
||||||
image: golang:1.18
|
image: golang:alpine
|
||||||
commands:
|
commands:
|
||||||
|
- apk update && apk --no-cache add git gcc glibc
|
||||||
- go install golang.org/x/lint/golint@latest
|
- go install golang.org/x/lint/golint@latest
|
||||||
- golint -set_exit_status ./pkg/...
|
- golint -set_exit_status ./pkg/...
|
||||||
volumes:
|
volumes:
|
||||||
@ -22,8 +24,9 @@ steps:
|
|||||||
path: /go
|
path: /go
|
||||||
|
|
||||||
- name: vet
|
- name: vet
|
||||||
image: golang:1.18
|
image: golang:alpine
|
||||||
commands:
|
commands:
|
||||||
|
- apk update && apk --no-cache add git gcc glibc
|
||||||
- go vet ./pkg/...
|
- go vet ./pkg/...
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
|
Loading…
Reference in New Issue
Block a user