ci: tolerate git push failure
Some checks failed
Build & Deploy Go API / build (push) Has been cancelled

This commit is contained in:
Joe
2026-07-19 21:26:47 +08:00
parent b8d107a123
commit 61e01e6034

View File

@@ -51,8 +51,9 @@ jobs:
git config user.name "gitea-ci"
git add deploy/helm/values.yaml
git commit -m "ci: update image tag to ${SHORT}" || echo "nothing to commit"
git push origin main
echo "✓ Pushed tag ${SHORT}"
# Try push but don't fail if Gitea is unreachable
git push origin main || echo "⚠ push failed - Gitea may be unreachable from cluster"
echo "✓ Done with tag ${SHORT}"
env:
GITHUB_SHA: ${{ github.sha }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}