From 5d3861e02412b86428cb4cb00d3a8698e4deebf3 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Thu, 20 May 2021 23:43:59 +0200 Subject: [PATCH] Add cache_key --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6086209..8d2cbeb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,7 +22,7 @@ steps: settings: backend: "filesystem" restore: true - cache_key: "volume" + cache_key: '{{ .Repo.Name }}_{{ checksum "editor/package.json" }}_{{ checksum "editor/package-lock.json" }}_{{ arch }}_{{ os }}' archive_format: "gzip" mount: - './editor/node_modules' @@ -49,7 +49,7 @@ steps: settings: backend: "filesystem" rebuild: true - cache_key: "volume" + cache_key: '{{ .Repo.Name }}_{{ checksum "editor/package.json" }}_{{ checksum "editor/package-lock.json" }}_{{ arch }}_{{ os }}' archive_format: "gzip" mount: - './editor/node_modules'