Fix droen

This commit is contained in:
Lunny Xiao 2021-04-09 21:33:17 +08:00
parent f48b50c940
commit 0f029ce50a
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 6 additions and 4 deletions

View File

@ -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