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