chore: add Dockerfile to cache key
All checks were successful
continuous-integration/drone/pr Build is passing

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.
This commit is contained in:
João Paulo Dubas 2025-05-22 13:39:50 +00:00
parent 7eb745627c
commit e13cb2aaad
Signed by: joao.dubas
SSH Key Fingerprint: SHA256:V1mixgOGRc/YMhGx/DNkOSmJxgA2vHNrDZEk3wt/kOA

View File

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