From 2bfeabb3b08893b6cc7fd2588b8d23e4c3914463 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Mon, 18 Apr 2022 01:04:11 +0200 Subject: [PATCH] [fix] Replaced regular golang image with lightweight alpine version --- .drone.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index ac1585f..c7e732f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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