[librsvg/librsvg-2.42: 5/17] gitlab-ci: Do not share the case between branches.
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.42: 5/17] gitlab-ci: Do not share the case between branches.
- Date: Fri, 2 Mar 2018 20:33:40 +0000 (UTC)
commit 471549976fbbb91c81fdfc948e79aabcb7e84d69
Author: Jordan Petridis <jordanpetridis protonmail com>
Date: Fri Mar 2 11:44:24 2018 +0200
gitlab-ci: Do not share the case between branches.
.gitlab-ci.yml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 566f8cb8..3f39dd30 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,8 +45,10 @@ stages:
- png_artifacts
cache:
- # Each job will have it's own cache
- key: "$CI_JOB_NAME"
+ # JOB_NAME - Each job will have it's own cache
+ # COMMIT_REF_SLUG = Lowercase name of the branch
+ # ^ Keep diffrerent caches for each branch
+ key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- target/
- .cargo_cache/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]