test
All checks were successful
Build and Push Minecraft Docker Images on Debian-base update / poll-debian-base-and-detect-changes (push) Successful in 10s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push fabric (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Has been skipped
All checks were successful
Build and Push Minecraft Docker Images on Debian-base update / poll-debian-base-and-detect-changes (push) Successful in 10s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push fabric (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Has been skipped
This commit is contained in:
@@ -5,7 +5,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/*.yml'
|
- '.gitea/workflows/*.yml'
|
||||||
- '**/Dockerfile'
|
- '**/Dockerfile'
|
||||||
- '**/*.sh'
|
- '**/*.sh'
|
||||||
- '!**/CHANGES.md'
|
- '!**/CHANGES.md'
|
||||||
@@ -227,7 +227,7 @@ generate-changelogs:
|
|||||||
image="${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_ORG }}/${{ env.IMAGE_REPO_MINECRAFT }}:${{ matrix.version }}"
|
image="${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_ORG }}/${{ env.IMAGE_REPO_MINECRAFT }}:${{ matrix.version }}"
|
||||||
|
|
||||||
if ! docker pull "$image"; then
|
if ! docker pull "$image"; then
|
||||||
echo "[WARN] Failed to pull $image — setting fields to 'unknown/0'"
|
echo "[WARN] Failed to pull $image — setting fields to unknown/0"
|
||||||
digest="unknown"
|
digest="unknown"
|
||||||
size_bytes=0
|
size_bytes=0
|
||||||
else
|
else
|
||||||
@@ -257,17 +257,28 @@ generate-changelogs:
|
|||||||
image_size_bytes: $image_size_bytes
|
image_size_bytes: $image_size_bytes
|
||||||
}' > "$infofile"
|
}' > "$infofile"
|
||||||
|
|
||||||
|
echo "[INFO] Generated $infofile:"
|
||||||
|
cat "$infofile"
|
||||||
|
|
||||||
|
- name: Git status debug
|
||||||
|
run: |
|
||||||
|
cd upload-repo
|
||||||
|
echo "[DEBUG] Git status before commit:"
|
||||||
|
git status
|
||||||
|
echo "[DEBUG] Git diff:"
|
||||||
|
git diff "${{ matrix.version }}/build-info.json" || true
|
||||||
|
|
||||||
- name: Commit and push build-info
|
- name: Commit and push build-info
|
||||||
run: |
|
run: |
|
||||||
cd upload-repo
|
cd upload-repo
|
||||||
git config user.name "${{ secrets.GIT_USERNAME }}"
|
git config user.name "${{ secrets.GIT_USERNAME }}"
|
||||||
git config user.email "${{ secrets.GIT_EMAIL }}"
|
git config user.email "${{ secrets.GIT_EMAIL }}"
|
||||||
|
|
||||||
if git status --porcelain | grep .; then
|
if git status --porcelain | grep .; then
|
||||||
git add "${{ matrix.version }}/build-info.json"
|
git add "${{ matrix.version }}/build-info.json"
|
||||||
git commit -m "Update build-info on $(date -u +'%Y-%m-%dT%H:%M:%SZ')" || true
|
git commit -m "Update build-info for ${{ matrix.version }} on $(date -u +'%Y-%m-%dT%H:%M:%SZ')" || true
|
||||||
git push
|
git push
|
||||||
|
|
||||||
# Optional: push lightweight tag for this build
|
|
||||||
TAG="build-${{ matrix.version }}"
|
TAG="build-${{ matrix.version }}"
|
||||||
git tag -d "$TAG" 2>/dev/null || true
|
git tag -d "$TAG" 2>/dev/null || true
|
||||||
git tag "$TAG"
|
git tag "$TAG"
|
||||||
|
|||||||
Reference in New Issue
Block a user