From 842bd6be85a9b272d06cd69b61af39d2c6d7dd00 Mon Sep 17 00:00:00 2001
From: Nicolas Richart <nicolas.richart@epfl.ch>
Date: Mon, 12 Aug 2024 16:17:00 +0200
Subject: [PATCH] Correcting ci

---
 .gitlab-ci.yml         | 2 +-
 ci/prepare_squashfs.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 844401b..4a6a8e9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -68,7 +68,7 @@ variables:
         SQUASHFS_ID: ${CI_COMMIT_BRANCH}
     - if: $CI_COMMIT_TAG =~ /^v[0-9].*$/
       variables:
-        SQUASHFS_ID: ${CI_COMMIT_BRANCH}
+        SQUASHFS_ID: ${CI_COMMIT_REF_SLUG}
 
 .parallel_job:
   extends:
diff --git a/ci/prepare_squashfs.sh b/ci/prepare_squashfs.sh
index 43deb47..4914eaf 100755
--- a/ci/prepare_squashfs.sh
+++ b/ci/prepare_squashfs.sh
@@ -5,7 +5,7 @@ set -o nounset
 set -o errexit
 source ${CI_PROJECT_DIR}/ci/stack_env.sh
 
-mkdir ${CI_DATA_ST}/homes
+mkdir -p ${CI_DATA_ST}/homes
 
 for i in squashfs-cache buildcache spack-mirror
 do
-- 
GitLab