[fix] Replaced regular golang image with lightweight alpine version
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Piotr Biernat 2022-04-18 01:04:11 +02:00
parent e5aac88664
commit 2bfeabb3b0

View File

@ -4,8 +4,9 @@ name: default
steps:
- name: static_check
image: golang:1.18
image: golang:alpine
commands:
- apk update && apk --no-cache add git gcc glibc
- go install honnef.co/go/tools/cmd/staticcheck@latest
- staticcheck ./pkg/...
volumes:
@ -13,8 +14,9 @@ steps:
path: /go
- name: lint
image: golang:1.18
image: golang:alpine
commands:
- apk update && apk --no-cache add git gcc glibc
- go install golang.org/x/lint/golint@latest
- golint -set_exit_status ./pkg/...
volumes:
@ -22,8 +24,9 @@ steps:
path: /go
- name: vet
image: golang:1.18
image: golang:alpine
commands:
- apk update && apk --no-cache add git gcc glibc
- go vet ./pkg/...
volumes:
- name: gopath