ghjetyjetyj
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Successful in 4m1s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Failing after 30s
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 4m1s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Failing after 30s
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:
@@ -48,6 +48,12 @@ jobs:
|
|||||||
/scripts/bootstrap-rootfs.sh
|
/scripts/bootstrap-rootfs.sh
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: Debug output folder
|
||||||
|
run: |
|
||||||
|
echo "Archives present:"
|
||||||
|
ls -lh ./debian-*.tar.bz2 || true
|
||||||
|
ls -lh rootfs-*.tar.bz2 || true
|
||||||
|
|
||||||
- name: List output archives
|
- name: List output archives
|
||||||
run: |
|
run: |
|
||||||
echo "[INFO] Final archive list:"
|
echo "[INFO] Final archive list:"
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
DEBIAN_RELEASE=${VERSION:-"buster"}
|
DEBIAN_RELEASE="${VERSION:-}"
|
||||||
ROOTFS_DIR="debian-${DEBIAN_RELEASE}"
|
ROOTFS_DIR="debian-${DEBIAN_RELEASE}"
|
||||||
|
OUTPUT_DIR="/output"
|
||||||
|
TARBALL="${OUTPUT_DIR}/debian-${DEBIAN_RELEASE}.tar.bz2"
|
||||||
|
|
||||||
echo "[INFO] Bootstrapping Debian $DEBIAN_RELEASE rootfs..."
|
echo "[INFO] Bootstrapping Debian $DEBIAN_RELEASE rootfs..."
|
||||||
apt-get update
|
apt-get update
|
||||||
@@ -36,8 +38,15 @@ for dir in sys proc dev/pts dev; do
|
|||||||
umount -lf "$ROOTFS_DIR/$dir" 2>/dev/null || true
|
umount -lf "$ROOTFS_DIR/$dir" 2>/dev/null || true
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "[INFO] Rootfs size:"
|
||||||
|
du -sh "$ROOTFS_DIR"
|
||||||
|
|
||||||
echo "[INFO] Creating compressed base image..."
|
echo "[INFO] Creating compressed base image..."
|
||||||
mkdir -p "/output/$DEBIAN_RELEASE"
|
mkdir -p "$OUTPUT_DIR"
|
||||||
TARBALL="/output/$DEBIAN_RELEASE/debian-${DEBIAN_RELEASE}.tar.bz2"
|
|
||||||
tar -cjf "$TARBALL" -C "$ROOTFS_DIR" .
|
tar -cjf "$TARBALL" -C "$ROOTFS_DIR" .
|
||||||
|
|
||||||
|
ls -lh "$TARBALL"
|
||||||
|
echo "[INFO] Image archive size:"
|
||||||
|
du -sh "$TARBALL"
|
||||||
|
|
||||||
echo "[INFO] Tarball ready: $TARBALL"
|
echo "[INFO] Tarball ready: $TARBALL"
|
||||||
|
|||||||
Reference in New Issue
Block a user