gfdhgdfh
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been cancelled

This commit is contained in:
2025-07-07 17:14:14 -07:00
parent 351d9b7e5b
commit c0a36c4afb

View File

@@ -29,59 +29,21 @@ jobs:
- name: Build all Debian rootfs versions sequentially
run: |
versions=($VERSIONS)
echo "[DEBUG] Build starting in $(pwd)"
for version in "${versions[@]}"; do
echo "[INFO] Building Debian $version rootfs..."
docker build --build-arg VERSION="$version" -t fithwum/debian-$version-base .
docker build --build-arg VERSION=$version -t fithwum/debian-$version-base .
mkdir -p "./$version"
echo "[INFO] Running container for $version"
docker run --rm --privileged \
-v "$(pwd)":/output \
-v "$(pwd)/$version":/output \
fithwum/debian-$version-base \
bash -euxo pipefail -c "
TARBALL=\"/output/debian-${version}.tar.bz2\"
TARGET_DIR=\"/output/${version}\"
mkdir -p \"\$TARGET_DIR\"
if [ ! -f \"\$TARBALL\" ]; then
echo '[ERROR] Tarball not found at expected path: '\$TARBALL
ls -lh /output || true
exit 1
fi
echo \"[INFO] Moving \$TARBALL to \$TARGET_DIR/\"
mv \"\$TARBALL\" \"\$TARGET_DIR/\" || { echo '[ERROR] Move failed'; exit 1; }
echo \"[INFO] Moved tarball to \$TARGET_DIR/\"
ls -lh \"\$TARGET_DIR/\"
"
echo "[DEBUG] After run: host dir contents:"
ls -lh "./$version" || echo "[WARN] $version directory missing!"
echo "[DEBUG] After container, listing host $version folder:"
ls -lh "$version"
echo "[INFO] Finished $version"
bash base-image-script/debian-${version}_pt1.sh
echo "[DEBUG] Checking host output dir: ./$version"
ls -lh "./$version" || echo "[WARN] No folder or files in ./$version"
done
- name: Print host working directory & contents
run: |
echo "Working dir: $(pwd)"
ls -R .
# for version in "${versions[@]}"; do
# echo "[INFO] Building Debian $version rootfs..."
# docker build --build-arg VERSION=$version -t fithwum/debian-$version-base .
# mkdir -p "./$version"
# docker run --rm --privileged \
# -v "$(pwd)":/output \
# fithwum/debian-$version-base \
# bash base-image-script/debian-${version}_pt1.sh
# echo "[DEBUG] Checking host output dir: ./$version"
# ls -lh "./$version" || echo "[WARN] No folder or files in ./$version"
# done
- name: List output archives
run: |
echo "[INFO] Looking for tarballs in workspace..."