Skip to content
Snippets Groups Projects
Verified Commit f3bf576a authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

arch_boxes_sync: Fix the file path for the "latest" checksum files

Fixes: 2e799bd1 ("arch_boxes_sync: Create predictable symlinks for latest image files")
parent e7aa193b
No related branches found
No related tags found
1 merge request!580arch_boxes_sync: Pull the artifacts from GitLab's package registry
......@@ -34,8 +34,17 @@ mv output/* "${LATEST_RELEASE_TAG}"
for FILE in "${LATEST_RELEASE_TAG}"/*; do
if [[ $FILE == *${LATEST_RELEASE_TAG:1}* ]]; then
FILE="${FILE##*/}"
ln -s "${FILE}" "${LATEST_RELEASE_TAG}/${FILE//-${LATEST_RELEASE_TAG:1}}"
DEST="${FILE//-${LATEST_RELEASE_TAG:1}}"
if [[ $FILE =~ .*\.SHA256$ ]]; then
sed "s/-${LATEST_RELEASE_TAG:1}//" "${FILE}" > "${DEST}"
touch --no-create --reference="${FILE}" "${DEST}"
# Don't create a symlink for the .SHA256.sig file, as we break the signature by fixing the checksum file.
elif [[ $FILE =~ .*\.SHA256.sig$ ]]; then
continue
else
FILE="${FILE##*/}"
ln -s "${FILE}" "${DEST}"
fi
fi
done
......
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