Compare commits

...

2 Commits

Author SHA1 Message Date
7b2e948b0b Only use repo, arch and os in cache key
Some checks failed
continuous-integration/drone/push Build is failing
2021-05-20 23:50:08 +02:00
1fe18a69e0 Increase version of cache plugin 2021-05-20 23:49:58 +02:00

View File

@ -17,12 +17,12 @@ steps:
- go test ./...
- name: restore-cache-with-filesystem
image: meltwater/drone-cache:dev
image: meltwater/drone-cache:v1
pull: true
settings:
backend: "filesystem"
restore: true
cache_key: '{{ .Repo.Name }}_{{ checksum "editor/package.json" }}_{{ checksum "editor/package-lock.json" }}_{{ arch }}_{{ os }}'
cache_key: '{{ .Repo.Name }}_{{ arch }}_{{ os }}'
archive_format: "gzip"
mount:
- './editor/node_modules'
@ -42,14 +42,14 @@ steps:
- npm run docker
- name: rebuild-cache-with-filesystem
image: meltwater/drone-cache:dev
image: meltwater/drone-cache:v1
pull: true
depends_on:
- build-node
settings:
backend: "filesystem"
rebuild: true
cache_key: '{{ .Repo.Name }}_{{ checksum "editor/package.json" }}_{{ checksum "editor/package-lock.json" }}_{{ arch }}_{{ os }}'
cache_key: '{{ .Repo.Name }}_{{ arch }}_{{ os }}'
archive_format: "gzip"
mount:
- './editor/node_modules'