chore: add Dockerfile
to cache key
All checks were successful
continuous-integration/drone/pr Build is passing
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:
parent
7eb745627c
commit
e13cb2aaad
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user