feat(ci): use cache volume
This commit is contained in:
parent
f4509111b1
commit
efef50e89d
1 changed files with 10 additions and 0 deletions
10
.drone.yml
10
.drone.yml
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue