ci: tolerate git push failure
Some checks failed
Build & Deploy Go API / build (push) Has been cancelled
Some checks failed
Build & Deploy Go API / build (push) Has been cancelled
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user