From efef50e89d1d5897f455e9c5c58824b43965ce9f Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Tue, 28 Feb 2023 22:07:33 +0100 Subject: [PATCH] feat(ci): use cache volume --- .drone.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.drone.yml b/.drone.yml index a110562..76a7e10 100644 --- a/.drone.yml +++ b/.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