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
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:
@@ -1 +0,0 @@
|
|||||||
alpine@sha256:865b95f46d98cf867a156fe4a135ad3fe50d2056aa3f25ed31662dff6da4eb62
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
gitea.fithwum.tech/fithwum/debian-base@sha256:3b785538554f75ca53833cf6aa0d61ead2fa8a797e0c33e9b51ef2500f2b0ed6
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
gitea.fithwum.tech/fithwum/debian-base@sha256:3b785538554f75ca53833cf6aa0d61ead2fa8a797e0c33e9b51ef2500f2b0ed6
|
|
||||||
@@ -169,31 +169,43 @@ jobs:
|
|||||||
|
|
||||||
- name: Update base digest cache
|
- name: Update base digest cache
|
||||||
run: |
|
run: |
|
||||||
set -e
|
|
||||||
|
|
||||||
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 }}"
|
||||||
|
|
||||||
mkdir -p .cache
|
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
|
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
|
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
|
echo "${{ needs.check-for-changes.outputs.basic_digest }}" > .cache/basic-base.digest
|
||||||
fi
|
|
||||||
|
|
||||||
if git status --porcelain | grep .; then
|
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 add .cache/*-base.digest
|
||||||
git commit -m "Update base image digests ($(date -u +'%Y-%m-%dT%H:%M:%SZ'))"
|
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
|
else
|
||||||
echo "[INFO] No digest updates to commit"
|
echo "[INFO] No digest updates to commit."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
generate-build-info:
|
generate-build-info:
|
||||||
@@ -417,7 +429,4 @@ jobs:
|
|||||||
git push origin --delete "$TEMP_BRANCH" || true
|
git push origin --delete "$TEMP_BRANCH" || true
|
||||||
else
|
else
|
||||||
echo "[INFO] No changelog changes to commit."
|
echo "[INFO] No changelog changes to commit."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
###################################################################################
|
|
||||||
Reference in New Issue
Block a user