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