feat(ci): use cache volume
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing

This commit is contained in:
Peter 2023-02-28 22:07:33 +01:00
parent f4509111b1
commit efef50e89d
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9

View file

@ -16,6 +16,9 @@ steps:
GO111MODULE: "on"
CGO_ENABLED: "0"
GOMEMLIMIT: "1150MiB"
volumes:
- name: go-cache
path: /go
commands:
- golangci-lint run -v
@ -25,6 +28,9 @@ steps:
environment:
GO111MODULE: "on"
CGO_ENABLED: "1"
volumes:
- name: go-cache
path: /go
commands:
- go install gotest.tools/gotestsum@latest
- sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
@ -53,6 +59,10 @@ steps:
commands:
- goreleaser release --clean
volumes:
- name: go-cache
temp: { }
---
kind: pipeline
type: docker