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

Suffix reset in other script

parent 5f2cfbeb
No related branches found
No related tags found
1 merge request!5Adding nvhpc to kuma
Pipeline #205734 canceled
#!/usr/bin/env sh
set -o nounset
set -o errexit
set -o pipefail
source ${CI_PROJECT_DIR}/ci/stack_env.sh
sqfs_suffix="${CI_PIPELINE_ID}-$(date +%Y%m%d_%H%M)"
if [ $# -eq 1 ]
then
suffix=$1
else
suffix=${CI_PIPELINE_ID}-$(date +'%Y%m%d_%H%M')
sqfs_suffix=$1
echo "Got 1 argument"
fi
set -o nounset
source ${CI_PROJECT_DIR}/ci/stack_env.sh
jq -Mrc '
excludes=$(jq -Mrc '
.spack.mirrors
| to_entries
| map(select(.value.type="relative"))
| map("\(.value.url)")
| .[]
' ${STACK_CONFIG} > excludes.list
' ${STACK_CONFIG})
echo $excludes > excludes.list
echo buildcache >> excludes.list
cd /squashfs-cache
mksquashfs \
${MOUNT_POINT} \
${stack}-${environment}-${SQUASHFS_ID}-${suffix}.sqfs \
-ef ${CI_PROJECT_DIR}/excludes.list \
mksquashfs ${MOUNT_POINT} ${stack}-${environment}-${SQUASHFS_ID}-${sqfs_suffix}.sqfs -ef ${CI_PROJECT_DIR}/excludes.list
cd -
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