Skip to content
Snippets Groups Projects
Commit df2c8686 authored by Nicolas Richart's avatar Nicolas Richart
Browse files

More correction of stuffs

parent 4e37113e
No related branches found
No related tags found
1 merge request!2CI update to use squashfs
Pipeline #201489 failed
......@@ -85,7 +85,7 @@ variables:
then
exit 0
fi
- ./ci/update_squashfs.sh
- ${CI_PROJECT_DIR}/ci/update_squashfs.sh
.spack_cache:
cache:
......
......@@ -4,7 +4,14 @@ CI_DATA=$1
suffix=$2
mount_point=$3
mkdir -p ${CI_DATA}/overlayfs/{upper,wd}-${suffix}
for i in upper wd
do
if [ -d ${CI_DATA}/overlayfs/$i-${suffix} ]
then
rm -rf ${CI_DATA}/overlayfs/$i-${suffix}
fi
mkdir -p ${CI_DATA}/overlayfs/$i-${suffix}
done
/usr/libexec/apptainer/bin/fuse-overlayfs \
-o squash_to_uid=$(id -u) \
......
......@@ -5,6 +5,15 @@ set -o nounset
source ${CI_PROJECT_DIR}/ci/stack_env.sh
for i in overlayfs squashfs-cache buildcache spack-mirror
do
if [ ! -e ${CI_DATA}/$i ]
then
mkdir -p ${CI_DATA}/$i
fi
done
# Check if MR as squashfs
sqfs_image=$(ls -t1 ${CI_DATA}/squashfs-cache/${stack}-${environment}-${squash_id}*.sqfs 2> /dev/null | head -1)
if [ $? -ne 0 ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment