fix
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-rootfs-archives (push) Successful in 8m19s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Failing after 26s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Successful in 26s
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-07-10 07:59:47 -07:00
parent 31beacd091
commit 2e62520cff
9 changed files with 100 additions and 129 deletions

View File

@@ -1,20 +0,0 @@
#!/bin/bash
set -euo pipefail
VERSION="$1"
VOLUME="build_output_$VERSION"
echo "[INFO] Building rootfs for $VERSION"
docker volume create "$VOLUME"
docker build --build-arg VERSION="$VERSION" -t "fithwum/debian-$VERSION-base" .
docker run --rm --privileged -v "$VOLUME:/output" \
-e VERSION="$VERSION" \
"fithwum/debian-$VERSION-base" \
bash -c "/scripts/bootstrap-rootfs.sh \"$VERSION\""
container_id=$(docker create -v "$VOLUME:/output" debian)
mkdir -p "output/$VERSION"
docker cp "$container_id:/output/$VERSION/debian-$VERSION.tar.bz2" "output/$VERSION/"
docker rm "$container_id"

View File

@@ -1,23 +0,0 @@
#!/bin/bash
set -euo pipefail
VERSION="$1"
REPO_URL="https://${GIT_USERNAME}:${GIT_PASSWORD}@gitea.fithwum.tech/fithwum/debian-base.git"
git clone --depth=1 "$REPO_URL" upload-repo
rm -rfv "upload-repo/$VERSION/*.tar.bz2"
mkdir -p "upload-repo/$VERSION"
cp "output/$VERSION/debian-$VERSION.tar.bz2" "upload-repo/$VERSION/"
cd upload-repo
sha256sum "$VERSION/debian-$VERSION.tar.bz2" > sha256sums.txt
git config user.name "$GIT_USERNAME"
git config user.email "ci@gitea.fithwum.tech"
if git status --porcelain | grep .; then
git add "$VERSION/*.tar.bz2" sha256sums.txt
git commit -m "Update $VERSION archive"
git push
else
echo "[INFO] No changes to commit."
fi

View File

@@ -1,11 +0,0 @@
#!/bin/bash
set -euo pipefail
VERSION="$1"
archive="./output/$VERSION/debian-$VERSION.tar.bz2"
if [[ ! -f "$archive" ]]; then
echo "[ERROR] Archive missing: $archive"
exit 1
else
echo "[OK] Found archive: $archive"
fi