Change CI caching strategy
Key the cache on the image being used and the commit sha. This should allow the cache to be reused by the same runner across multiple jobs/stages where appropriate.
This commit is contained in:
parent
9a4cdde5c9
commit
f00a681cc1
@ -18,9 +18,7 @@ workflow:
|
|||||||
- if: $CI_COMMIT_BRANCH
|
- if: $CI_COMMIT_BRANCH
|
||||||
|
|
||||||
cache: &global_cache_policy
|
cache: &global_cache_policy
|
||||||
key:
|
key: $CI_JOB_IMAGE-$CI_COMMIT_SHORT_SHA
|
||||||
files:
|
|
||||||
- mix.lock
|
|
||||||
paths:
|
paths:
|
||||||
- deps
|
- deps
|
||||||
- _build
|
- _build
|
||||||
|
0
changelog.d/ci-cache.skip
Normal file
0
changelog.d/ci-cache.skip
Normal file
Loading…
Reference in New Issue
Block a user