fix(ci): add .tool-versions to set cache key
All checks were successful
continuous-integration/drone/pr Build is passing

With this change we ensure dependencies and build directories are
re-created when changes in runtime are applied.
This commit is contained in:
Joao P Dubas 2023-07-23 22:40:50 +00:00
parent 1704c39074
commit 343b353795

View File

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