fix: patch ArgoCD app in cicd namespace (not argocd)
All checks were successful
Build & Deploy / build (push) Successful in 3s
All checks were successful
Build & Deploy / build (push) Successful in 3s
This commit is contained in:
@@ -71,8 +71,8 @@ jobs:
|
|||||||
- name: Patch ArgoCD
|
- name: Patch ArgoCD
|
||||||
run: |
|
run: |
|
||||||
SHORT=${GITHUB_SHA::8}
|
SHORT=${GITHUB_SHA::8}
|
||||||
if kubectl -n argocd get application demo-frontend &>/dev/null; then
|
if kubectl -n cicd get application demo-frontend &>/dev/null; then
|
||||||
kubectl -n argocd patch application demo-frontend --type merge \
|
kubectl -n cicd patch application demo-frontend --type merge \
|
||||||
-p "{\"spec\":{\"source\":{\"helm\":{\"parameters\":[{\"name\":\"image.registry\",\"value\":\"${REGISTRY}\"},{\"name\":\"image.tag\",\"value\":\"${SHORT}\"}]}}}}"
|
-p "{\"spec\":{\"source\":{\"helm\":{\"parameters\":[{\"name\":\"image.registry\",\"value\":\"${REGISTRY}\"},{\"name\":\"image.tag\",\"value\":\"${SHORT}\"}]}}}}"
|
||||||
echo "✓ ArgoCD app patched"
|
echo "✓ ArgoCD app patched"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user