From e13cb2aaad2dfa211dcb7784aee99ae2117d5f19 Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Thu, 22 May 2025 13:39:50 +0000 Subject: [PATCH] chore: add `Dockerfile` to cache key Since the `Dockerfile` is not synced with `.tool-versions`, it's a good idea to add it to the cache key, ensuring that the cache is invalidated whenever the `Dockerfile` changes. --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index bb70bbd..e3aabd6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,7 +29,7 @@ steps: settings: archive_format: gzip bucket: trainlog-cache - cache_key: '{{ .Repo.Name }}-{{ checksum ".tool-versions" }}-{{ checksum "mix.lock" }}' + cache_key: '{{ .Repo.Name }}-{{ checksum ".tool-versions" }}-{{ checksum "mix.lock" }}-{{ checksum "Dockerfile" }}' endpoint: minio:9000 mount: - _build @@ -139,7 +139,7 @@ steps: settings: archive_format: gzip bucket: trainlog-cache - cache_key: '{{ .Repo.Name }}-{{ checksum ".tool-versions" }}-{{ checksum "mix.lock" }}' + cache_key: '{{ .Repo.Name }}-{{ checksum ".tool-versions" }}-{{ checksum "mix.lock" }}-{{ checksum "Dockerfile" }}' endpoint: minio:9000 exit_code: true mount: