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 config user.name "gitea-ci"
|
||||||
git add deploy/helm/values.yaml
|
git add deploy/helm/values.yaml
|
||||||
git commit -m "ci: update image tag to ${SHORT}" || echo "nothing to commit"
|
git commit -m "ci: update image tag to ${SHORT}" || echo "nothing to commit"
|
||||||
git push origin main
|
# Try push but don't fail if Gitea is unreachable
|
||||||
echo "✓ Pushed tag ${SHORT}"
|
git push origin main || echo "⚠ push failed - Gitea may be unreachable from cluster"
|
||||||
|
echo "✓ Done with tag ${SHORT}"
|
||||||
env:
|
env:
|
||||||
GITHUB_SHA: ${{ github.sha }}
|
GITHUB_SHA: ${{ github.sha }}
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user