test
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 (trixie) (push) Successful in 8m54s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build RootFS Archives (bullseye) (push) Failing after 10m34s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build RootFS Archives (bookworm) (push) Successful in 11m24s
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-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:
2025-12-20 16:42:43 -08:00
parent 745ceae5b1
commit c78ae1ff4e

View File

@@ -108,22 +108,23 @@ jobs:
mkdir -p "upload-repo/$VERSION"
cp "./output/$VERSION/debian-$VERSION.tar.bz2" "upload-repo/$VERSION/"
- name: Update sha256sums
- name: Update sha256sums (per-version)
run: |
cd upload-repo
VERSION=${{ matrix.version }}
TAR="../output/$VERSION/debian-$VERSION.tar.bz2"
SHA_FILE="$VERSION/sha256sums.txt"
# Remove old entry
sed -i "/debian-$VERSION.tar.bz2/d" sha256sums.txt 2>/dev/null || true
mkdir -p "$VERSION"
if [[ ! -f "$TAR" ]]; then
echo "[ERROR] Tarball not found at $TAR"
exit 1
fi
# Add new sha256
sha256sum "$TAR" >> sha256sums.txt
# Calculate SHA256 and store in per-version file
sha256sum "$TAR" > "$SHA_FILE"
echo "[INFO] SHA256 for $VERSION stored in $SHA_FILE"
- name: Commit and push if changed (matrix-safe)
id: commit_archives
@@ -132,20 +133,22 @@ jobs:
git config user.name "${{ env.GIT_USERNAME }}"
git config user.email "${{ env.GIT_EMAIL }}"
VERSION=${{ matrix.version }}
# Create temporary branch for this version
TEMP_BRANCH="tmp-update-${{ matrix.version }}-$(date -u +%s)"
TEMP_BRANCH="tmp-update-${VERSION}-$(date -u +%s)"
git checkout -b "$TEMP_BRANCH"
# Stage changes
git add **/*.tar.bz2 sha256sums.txt
# Stage changes: tarball + version-specific SHA file
git add "$VERSION/debian-$VERSION.tar.bz2" "$VERSION/sha256sums.txt"
if git diff --cached --quiet; then
echo "[INFO] No changes to commit for ${{ matrix.version }}"
echo "[INFO] No changes to commit for $VERSION"
echo "archives_changed=false" >> $GITEA_OUTPUT
exit 0
fi
git commit -m "Update base image and checksum for ${{ matrix.version }} on $(date -u +'%Y-%m-%dT%H:%M:%SZ') [skip ci]"
git commit -m "Update base image and checksum for $VERSION on $(date -u +'%Y-%m-%dT%H:%M:%SZ') [skip ci]"
# Push temporary branch
git push origin "$TEMP_BRANCH"
@@ -160,6 +163,7 @@ jobs:
# Delete temporary branch on remote
git push origin --delete "$TEMP_BRANCH" || true
echo "archives_changed=true" >> $GITEA_OUTPUT
# build-and-push-docker-images: