fix(cd): rebase 衝突改 -X theirs,kustomization.yaml 永遠採用當次 image tag
All checks were successful
CD Pipeline / build-and-deploy (push) Successful in 10m47s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-17 13:17:20 +08:00
parent 2f3d2faf4d
commit 5dae6108fb

View File

@@ -408,8 +408,9 @@ jobs:
git remote remove gitea 2>/dev/null || true
git remote add gitea http://wooo:${GITEA_TOKEN}@192.168.0.110:3001/wooo/awoooi.git
# 先 rebase 避免 non-fast-forward (其他 commit 在 CI 期間已推入)
# 2026-04-17 ogt: -X theirs — kustomization.yaml 衝突時採用當次部署的 image tag
git fetch gitea main
git rebase gitea/main
git rebase -X theirs gitea/main
git push gitea main
echo "✅ kustomization.yaml 已 push等待 ArgoCD sync..."
}