tyhutyuty
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Failing after 45s
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
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Failing after 45s
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:
@@ -45,22 +45,26 @@ jobs:
|
|||||||
-v "$(pwd)":/output \
|
-v "$(pwd)":/output \
|
||||||
--env DEBIAN_RELEASE="$version" \
|
--env DEBIAN_RELEASE="$version" \
|
||||||
fithwum/debian-$version-base \
|
fithwum/debian-$version-base \
|
||||||
bash -euxc '
|
bash -euxo pipefail -c '
|
||||||
ROOTFS_DIR='debian-${version}'
|
set -e
|
||||||
|
|
||||||
echo '[INFO] Bootstrapping Debian $DEBIAN_RELEASE rootfs...'
|
ROOTFS_DIR="debian-${DEBIAN_RELEASE}"
|
||||||
|
|
||||||
|
echo "[INFO] Bootstrapping Debian $DEBIAN_RELEASE rootfs..."
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y --no-install-recommends debootstrap bzip2
|
apt-get install -y --no-install-recommends debootstrap bzip2
|
||||||
|
|
||||||
debootstrap --verbose --variant=minbase --components=main,contrib,non-free --include=apt,ca-certificates --arch=amd64 \"\$DEBIAN_RELEASE\" \"\$ROOTFS_DIR\" http://deb.debian.org/debian/
|
debootstrap --verbose --variant=minbase --components=main,contrib,non-free \
|
||||||
|
--include=apt,ca-certificates --arch=amd64 "$DEBIAN_RELEASE" "$ROOTFS_DIR" \
|
||||||
|
http://deb.debian.org/debian/
|
||||||
|
|
||||||
for dir in dev dev/pts proc sys; do
|
for dir in dev dev/pts proc sys; do
|
||||||
mount --bind \"/\$dir\" \"\$ROOTFS_DIR/\$dir\"
|
mount --bind "/$dir" "$ROOTFS_DIR/$dir"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo '[CHROOT] Configuring Debian system...'
|
echo "[CHROOT] Configuring Debian system..."
|
||||||
chroot \"\$ROOTFS_DIR\" /bin/bash -c \"
|
chroot "$ROOTFS_DIR" /bin/bash -c "
|
||||||
echo 'APT::Get::Assume-Yes \\\"true\\\";' > /etc/apt/apt.conf.d/10-assume_yes
|
echo 'APT::Get::Assume-Yes \"true\";' > /etc/apt/apt.conf.d/10-assume_yes
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get upgrade
|
apt-get upgrade
|
||||||
apt-get install --no-install-recommends software-properties-common bash wget curl nano locales
|
apt-get install --no-install-recommends software-properties-common bash wget curl nano locales
|
||||||
@@ -71,17 +75,18 @@ jobs:
|
|||||||
apt-get clean
|
apt-get clean
|
||||||
apt-get install -f
|
apt-get install -f
|
||||||
find /var/lib/apt/lists/ -type f -delete
|
find /var/lib/apt/lists/ -type f -delete
|
||||||
\"
|
"
|
||||||
|
|
||||||
echo '[INFO] Unmounting system directories (ignore errors)...'
|
echo "[INFO] Unmounting system directories (ignore errors)..."
|
||||||
for dir in sys proc dev/pts dev; do
|
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
|
||||||
|
|
||||||
mkdir -p /output/$DEBIAN_RELEASE
|
echo "[INFO] Creating compressed base image..."
|
||||||
|
mkdir -p "/output/$DEBIAN_RELEASE"
|
||||||
TARBALL="/output/$DEBIAN_RELEASE/debian-${DEBIAN_RELEASE}.tar.bz2"
|
TARBALL="/output/$DEBIAN_RELEASE/debian-${DEBIAN_RELEASE}.tar.bz2"
|
||||||
tar -cjf "$TARBALL" -C "$ROOTFS_DIR" .
|
tar -cjf "$TARBALL" -C "$ROOTFS_DIR" .
|
||||||
echo '[INFO] Tarball ready for CI to upload: \$TARBALL'
|
echo "[INFO] Tarball ready for CI to upload: $TARBALL"
|
||||||
'
|
'
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user