fix: patch ArgoCD app in cicd namespace (not argocd)
All checks were successful
Build & Deploy / build (push) Successful in 3s

This commit is contained in:
test
2026-07-19 14:17:34 +08:00
parent 1d81344393
commit bbf9c19d9f

View File

@@ -71,8 +71,8 @@ jobs:
- name: Patch ArgoCD
run: |
SHORT=${GITHUB_SHA::8}
if kubectl -n argocd get application demo-frontend &>/dev/null; then
kubectl -n argocd patch application demo-frontend --type merge \
if kubectl -n cicd get application demo-frontend &>/dev/null; then
kubectl -n cicd patch application demo-frontend --type merge \
-p "{\"spec\":{\"source\":{\"helm\":{\"parameters\":[{\"name\":\"image.registry\",\"value\":\"${REGISTRY}\"},{\"name\":\"image.tag\",\"value\":\"${SHORT}\"}]}}}}"
echo "✓ ArgoCD app patched"
fi