fix
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Successful in 7m3s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Failing after 37s
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
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Successful in 7m3s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Failing after 37s
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:
@@ -31,30 +31,15 @@ jobs:
|
||||
versions=($VERSIONS)
|
||||
|
||||
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)/$version":/output \
|
||||
-v "$(pwd)":/output \
|
||||
fithwum/debian-$version-base \
|
||||
bash base-image-script/debian-${version}_pt1.sh
|
||||
echo "[DEBUG] Checking host output dir: ./$version"
|
||||
|
||||
echo "[DEBUG] Checking host output dir: ./"
|
||||
ls -lh "./$version" || echo "[WARN] No folder or files in ./$version"
|
||||
|
||||
expected_path="./$version/debian-$version.tar.bz2"
|
||||
fallback_path="./debian-$version.tar.bz2"
|
||||
|
||||
if [ -f "$fallback_path" ]; then
|
||||
echo "[INFO] Found fallback tarball: $fallback_path"
|
||||
mkdir -p "./$version"
|
||||
mv "$fallback_path" "$expected_path"
|
||||
echo "[INFO] Moved $fallback_path to $expected_path"
|
||||
else
|
||||
echo "[ERROR] Expected tarball not found at $fallback_path"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
- name: List output archives
|
||||
|
||||
@@ -27,16 +27,10 @@ rm -f "$ROOTFS_DIR/root/${ROOTFS_DIR}_pt2.sh" 2>/dev/null || true
|
||||
echo "[INFO] Rootfs size:"
|
||||
du -sh "$ROOTFS_DIR"
|
||||
|
||||
mkdir -p /output
|
||||
|
||||
echo "[INFO] Creating compressed base image..."
|
||||
tar -cjf "$TARBALL" -C "$ROOTFS_DIR" .
|
||||
|
||||
echo "[INFO] Image archive size:"
|
||||
du -sh "$TARBALL"
|
||||
|
||||
# Debug listing output dir
|
||||
echo "[DEBUG] Listing /output:"
|
||||
ls -lh /output
|
||||
|
||||
echo "[INFO] Tarball ready for CI to upload: $TARBALL"
|
||||
|
||||
Reference in New Issue
Block a user