From 0f029ce50abd79432f6d84a27915c6f4f28da4ca Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 9 Apr 2021 21:33:17 +0800 Subject: [PATCH] Fix droen --- .drone.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 84a13cda..0a87534a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ steps: settings: backend: "filesystem" restore: true - cache_key: "volume" + cache_key: '{{ .Repo.Name }}_{{ checksum "go.mod" }}_{{ checksum "go.sum" }}_{{ arch }}_{{ os }}' archive_format: "gzip" mount: - pkg.mod @@ -29,6 +29,9 @@ steps: - make vet - make test - make fmt-check + volumes: + - name: cache + path: /go when: event: - push @@ -40,7 +43,7 @@ steps: settings: backend: "filesystem" rebuild: true - cache_key: "volume" + cache_key: '{{ .Repo.Name }}_{{ checksum "go.mod" }}_{{ checksum "go.sum" }}_{{ arch }}_{{ os }}' archive_format: "gzip" mount: - pkg.mod @@ -51,8 +54,7 @@ steps: volumes: - name: cache - host: - path: /var/lib/cache + temp: {} --- kind: pipeline