From 343b353795e0e88c5aec272c48af04ae4fcb94e5 Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Sun, 23 Jul 2023 22:40:50 +0000 Subject: [PATCH] fix(ci): add `.tool-versions` to set cache key With this change we ensure dependencies and build directories are re-created when changes in runtime are applied. --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8d9800e..8d95fd4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -27,7 +27,7 @@ steps: settings: archive_format: gzip bucket: trainlog-cache - cache_key: '{{ .Repo.Name }}-{{ checksum "mix.lock" }}' + cache_key: '{{ .Repo.Name }}-{{ checksum ".tool-versions" }}-{{ checksum "mix.lock" }}' endpoint: minio:9000 mount: - _build @@ -67,7 +67,7 @@ steps: settings: archive_format: gzip bucket: trainlog-cache - cache_key: '{{ .Repo.Name }}-{{ checksum "mix.lock" }}' + cache_key: '{{ .Repo.Name }}-{{ checksum ".tool-versions" }}-{{ checksum "mix.lock" }}' endpoint: minio:9000 exit_code: true mount: