logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: f00a681cc1dfd2f6b638eb8d7a03c5b82a5d5b90
parent 9a4cdde5c9e833a8cc61d660f5627717756778d2
Author: Mark Felder <feld@feld.me>
Date:   Wed, 19 Jun 2024 23:45:42 -0400

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:

M.gitlab-ci.yml4+---
Achangelog.d/ci-cache.skip0
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git 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 diff --git a/changelog.d/ci-cache.skip b/changelog.d/ci-cache.skip