test
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Failing after 33s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been skipped

This commit is contained in:
2025-07-07 08:12:37 -07:00
parent a1db1d32b5
commit cbb077f9f7

View File

@@ -44,18 +44,21 @@ jobs:
bash base-image-script/debian-${version}_pt1.sh
RAW_ARCHIVE="./debian-${version}.tar.bz2"
ALTERNATE_ARCHIVE="./output/debian-${version}.tar.bz2"
FINAL_ARCHIVE="${version}/rootfs-${version}.tar.bz2"
if [[ ! -f "$RAW_ARCHIVE" ]]; then
mkdir -p "$(dirname "$FINAL_ARCHIVE")"
RAW_ARCHIVE="./output/debian-${version}.tar.bz2"
echo "[INFO] Moved archive to $FINAL_ARCHIVE"
if [[ -f "$RAW_ARCHIVE" ]]; then
echo "[INFO] Found archive at $RAW_ARCHIVE"
elif [[ -f "$ALTERNATE_ARCHIVE" ]]; then
RAW_ARCHIVE="$ALTERNATE_ARCHIVE"
echo "[INFO] Found archive at alternate location $RAW_ARCHIVE"
else
echo "[ERROR] Archive for $version not found: $RAW_ARCHIVE"
echo "[ERROR] Archive for $version not found in expected locations:"
echo " - $RAW_ARCHIVE"
echo " - $ALTERNATE_ARCHIVE"
exit 1
fi
if [[ -f "$RAW_ARCHIVE" ]]; then
mkdir -p "$(dirname "$FINAL_ARCHIVE")"
mv "$RAW_ARCHIVE" "$FINAL_ARCHIVE"