test
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Failing after 1m48s
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:04:33 -07:00
parent c1422c7c14
commit a1db1d32b5
2 changed files with 81 additions and 10 deletions

View File

@@ -35,18 +35,26 @@ jobs:
echo "[INFO] Building Debian $version rootfs..."
docker build --build-arg VERSION=$version -t fithwum/debian-$version-base .
OUTPUT_DIR="$(pwd)/output"
mkdir -p "$OUTPUT_DIR"
docker run --rm --privileged \
-v "$(pwd)":/output \
-v "$OUTPUT_DIR:/output" \
fithwum/debian-$version-base \
bash base-image-script/debian-${version}_pt1.sh
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")"
RAW_ARCHIVE="./output/debian-${version}.tar.bz2"
echo "[INFO] Moved archive to $FINAL_ARCHIVE"
else
echo "[ERROR] Archive for $version not found: $RAW_ARCHIVE"
exit 1
fi
if [[ -f "$RAW_ARCHIVE" ]]; then
mkdir -p "$(dirname "$FINAL_ARCHIVE")"
mv "$RAW_ARCHIVE" "$FINAL_ARCHIVE"