summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-06-19 23:45:42 -0400
committerMark Felder <feld@feld.me>2024-06-20 08:59:39 -0400
commitf00a681cc1dfd2f6b638eb8d7a03c5b82a5d5b90 (patch)
tree528a51b935a223c13758fe6419507f5dfa43e628 /.gitlab-ci.yml
parent9a4cdde5c9e833a8cc61d660f5627717756778d2 (diff)
downloadpleroma-f00a681cc1dfd2f6b638eb8d7a03c5b82a5d5b90.tar.gz
pleroma-f00a681cc1dfd2f6b638eb8d7a03c5b82a5d5b90.zip
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.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml4
1 files changed, 1 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index da2ddcf42..2fa519291 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,9 +18,7 @@ workflow:
- if: $CI_COMMIT_BRANCH
cache: &global_cache_policy
- key:
- files:
- - mix.lock
+ key: $CI_JOB_IMAGE-$CI_COMMIT_SHORT_SHA
paths:
- deps
- _build