test
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Failing after 1m46s
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 07:56:11 -07:00
parent 4f39bd5734
commit c1422c7c14

View File

@@ -40,14 +40,17 @@ jobs:
fithwum/debian-$version-base \
bash base-image-script/debian-${version}_pt1.sh
RAW_ARCHIVE="debian-${version}.tar.bz2"
RAW_ARCHIVE="./debian-${version}.tar.bz2"
if [[ ! -f "$RAW_ARCHIVE" ]]; then
RAW_ARCHIVE="./output/debian-${version}.tar.bz2"
fi
FINAL_ARCHIVE="${version}/rootfs-${version}.tar.bz2"
if [[ -f "$RAW_ARCHIVE" ]]; then
mkdir -p "$(dirname "$FINAL_ARCHIVE")"
mv "$RAW_ARCHIVE" "$FINAL_ARCHIVE"
# Generate and log SHA256
CHECKSUM=$(sha256sum "$FINAL_ARCHIVE" | awk '{print $1}')
echo "[INFO] SHA256 for $FINAL_ARCHIVE: $CHECKSUM"
echo "$CHECKSUM $FINAL_ARCHIVE" >> sha256sums.txt