dfhgsdfghdfgh
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Docker prune (vm-docker-build2) (push) Successful in 5s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build RootFS Archives (bullseye) (push) Failing after 7m21s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build RootFS Archives (trixie) (push) Failing after 7m48s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build RootFS Archives (bookworm) (push) Failing after 8m58s
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. / Build & Push Docker Images (bookworm) (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build & Push Docker Images (bullseye) (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build & Push Docker Images (trixie) (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-12-20 14:54:33 -08:00
parent 3a146dcba7
commit 3066c5d8ba

View File

@@ -153,17 +153,30 @@ jobs:
VERSION=${{ matrix.version }}
docker build --build-arg VERSION="$VERSION" -t rootfs-$VERSION .
- name: Run rootfs bootstrap
- name: Run rootfs bootstrap in Docker volume
run: |
VERSION=${{ matrix.version }}
OUTPUT_DIR=./output/$VERSION
VOLUME_NAME="rootfs_output_$VERSION"
# Create Docker volume
docker volume create "$VOLUME_NAME"
# Run bootstrap inside volume
docker run --rm --privileged \
-v "$PWD/$OUTPUT_DIR:/output" \
-v "$VOLUME_NAME:/output" \
-e VERSION="$VERSION" \
rootfs-$VERSION \
bash -c "/scripts/bootstrap-rootfs.sh $VERSION /output"
# Extract tarball from Docker volume
CONTAINER_ID=$(docker create -v "$VOLUME_NAME:/output" debian:bookworm)
mkdir -p "$OUTPUT_DIR"
docker cp "$CONTAINER_ID:/output/debian-$VERSION.tar.bz2" "$OUTPUT_DIR/"
docker rm "$CONTAINER_ID"
docker volume rm "$VOLUME_NAME"
# Verify tarball exists
TAR="$OUTPUT_DIR/debian-$VERSION.tar.bz2"
if [[ ! -f "$TAR" ]]; then
echo "[ERROR] Rootfs tarball missing: $TAR"