test
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build rootfs (bookworm) (push) Waiting to run
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build rootfs (bullseye) (push) Waiting to run
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build rootfs (trixie) (push) Waiting to run
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build & Push Docker Images (bookworm) (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build & Push Docker Images (bullseye) (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build & Push Docker Images (trixie) (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-12-20 13:08:30 -08:00
parent 68a9087862
commit db1811068e

View File

@@ -130,7 +130,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Create output directory - name: Create output directory
run: mkdir -p ${{ env.OUTPUT_DIR }}/${{ matrix.version }} run: mkdir -p ${{ env.OUTPUT_DIR }}
- name: Build rootfs Docker image - name: Build rootfs Docker image
run: | run: |
@@ -142,15 +142,14 @@ jobs:
- name: Run rootfs bootstrap - name: Run rootfs bootstrap
run: | run: |
VERSION=${{ matrix.version }} VERSION=${{ matrix.version }}
OUTPUT_DIR=${{ env.OUTPUT_DIR }}/$VERSION
docker run --rm --privileged \ docker run --rm --privileged \
-v "$PWD/$OUTPUT_DIR:/output" \ -e VERSION="$VERSION" \
-v "$PWD/${{ env.OUTPUT_DIR }}:/output" \
rootfs-$VERSION \ rootfs-$VERSION \
bash -c "/scripts/bootstrap-rootfs.sh $VERSION /output" bash /scripts/bootstrap-rootfs.sh
# Verify tarball exists TAR="${{ env.OUTPUT_DIR }}/debian-$VERSION.tar.bz2"
TAR="$OUTPUT_DIR/debian-$VERSION.tar.bz2"
if [[ ! -f "$TAR" ]]; then if [[ ! -f "$TAR" ]]; then
echo "[ERROR] Rootfs tarball missing: $TAR" echo "[ERROR] Rootfs tarball missing: $TAR"
exit 1 exit 1
@@ -166,15 +165,12 @@ jobs:
- name: Update archive + sha256 - name: Update archive + sha256
run: | run: |
VERSION=${{ matrix.version }} VERSION=${{ matrix.version }}
OUTPUT_DIR=${{ env.OUTPUT_DIR }}/$VERSION
mkdir -p upload/$VERSION mkdir -p upload/$VERSION
cp "$OUTPUT_DIR/debian-$VERSION.tar.bz2" upload/$VERSION/ cp "${{ env.OUTPUT_DIR }}/debian-$VERSION.tar.bz2" upload/$VERSION/
cd upload cd upload
# Remove old checksum for this version
sed -i "/debian-$VERSION.tar.bz2/d" sha256sums.txt 2>/dev/null || true sed -i "/debian-$VERSION.tar.bz2/d" sha256sums.txt 2>/dev/null || true
# Add new checksum
sha256sum "$VERSION/debian-$VERSION.tar.bz2" >> sha256sums.txt sha256sum "$VERSION/debian-$VERSION.tar.bz2" >> sha256sums.txt
- name: Commit if changed - name: Commit if changed
@@ -191,6 +187,7 @@ jobs:
git push git push
else else
echo "[INFO] No changes for $VERSION" echo "[INFO] No changes for $VERSION"
fi
# build-and-push-docker-images: # build-and-push-docker-images:
# needs: build-and-push-rootfs-archives # needs: build-and-push-rootfs-archives