test
Some checks failed
Build and Push Teamspeak Images on Base Image Update / check-for-changes (push) Successful in 6s
Build and Push Teamspeak Images on Base Image Update / build-alpine (push) Successful in 6s
Build and Push Teamspeak Images on Base Image Update / build-debian (push) Successful in 5s
Build and Push Teamspeak Images on Base Image Update / build-basic (push) Successful in 5s
Build and Push Teamspeak Images on Base Image Update / generate-build-info (push) Failing after 7s
Build and Push Teamspeak Images on Base Image Update / update-base-digest-cache (push) Successful in 7s
Build and Push Teamspeak Images on Base Image Update / generate-changelogs (push) Has been skipped

This commit is contained in:
2026-01-11 06:46:16 -08:00
parent e5e9d49804
commit 8d65f8d8cb
4 changed files with 23 additions and 17 deletions

View File

@@ -1 +0,0 @@
alpine@sha256:865b95f46d98cf867a156fe4a135ad3fe50d2056aa3f25ed31662dff6da4eb62

View File

@@ -1 +0,0 @@
gitea.fithwum.tech/fithwum/debian-base@sha256:3b785538554f75ca53833cf6aa0d61ead2fa8a797e0c33e9b51ef2500f2b0ed6

View File

@@ -1 +0,0 @@
gitea.fithwum.tech/fithwum/debian-base@sha256:3b785538554f75ca53833cf6aa0d61ead2fa8a797e0c33e9b51ef2500f2b0ed6

View File

@@ -169,31 +169,43 @@ jobs:
- name: Update base digest cache
run: |
set -e
git config user.name "${{ secrets.GIT_USERNAME }}"
git config user.email "${{ secrets.GIT_EMAIL }}"
mkdir -p .cache
if [[ "${{ needs.build-alpine.outputs.built }}" == "true" ]]; then
[[ "${{ needs.build-alpine.outputs.built }}" == "true" ]] && \
echo "${{ needs.check-for-changes.outputs.alpine_digest }}" > .cache/alpine-base.digest
fi
if [[ "${{ needs.build-debian.outputs.built }}" == "true" ]]; then
[[ "${{ needs.build-debian.outputs.built }}" == "true" ]] && \
echo "${{ needs.check-for-changes.outputs.debian_digest }}" > .cache/debian-base.digest
fi
if [[ "${{ needs.build-basic.outputs.built }}" == "true" ]]; then
[[ "${{ needs.build-basic.outputs.built }}" == "true" ]] && \
echo "${{ needs.check-for-changes.outputs.basic_digest }}" > .cache/basic-base.digest
fi
if git status --porcelain | grep .; then
# Create a temporary branch
TEMP_BRANCH="tmp-digest-$(date -u +%s)"
git checkout -b "$TEMP_BRANCH"
git add .cache/*-base.digest
git commit -m "Update base image digests ($(date -u +'%Y-%m-%dT%H:%M:%SZ'))"
git push
# Push temporary branch
git push origin "$TEMP_BRANCH"
# Merge temp branch into main safely
git checkout main
git fetch origin main
git merge --no-ff --no-edit "$TEMP_BRANCH"
# Push main branch
git push origin main
# Delete temporary branch remotely
git push origin --delete "$TEMP_BRANCH" || true
else
echo "[INFO] No digest updates to commit"
echo "[INFO] No digest updates to commit."
fi
generate-build-info:
@@ -417,7 +429,4 @@ jobs:
git push origin --delete "$TEMP_BRANCH" || true
else
echo "[INFO] No changelog changes to commit."
fi
###################################################################################
fi