From d4484589d08192a16b66f165e84e0c847bbf11dd Mon Sep 17 00:00:00 2001
From: Klaus Reuter <khr@mpcdf.mpg.de>
Date: Wed, 20 Jul 2022 18:37:28 +0000
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c6a530c..083cf97 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,7 +4,8 @@ stages:          # List of stages for jobs, and their order of execution
   - deploy
 
 cache: &global_cache
-  key: $CI_COMMIT_REF_SLUG
+  # key: $CI_COMMIT_REF_SLUG
+  key: $CI_COMMIT_SHA
   paths:
     - bin
   policy: pull-push
@@ -16,7 +17,7 @@ build-job:       # This job runs in the build stage, which runs first.
   script:
     - echo "Compiling the code..."
     - echo "Compile complete."
-    - mkdir bin
+    - mkdir -p bin
     - cp /usr/bin/rev bin
 
 unit-test-job:   # This job runs in the test stage.
-- 
GitLab