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