fix: patch image.registry in ArgoCD and update helm values to use Harbor
Some checks failed
Build & Deploy / build (push) Failing after 9s

This commit is contained in:
Joe
2026-07-19 13:54:25 +08:00
parent c962cdd340
commit 272b019cd0
2 changed files with 3 additions and 2 deletions

View File

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

View File

@@ -1,6 +1,6 @@
# Default values
image:
registry: zot-registry.cicd.svc.cluster.local:5000
registry: 192.168.1.212:1180/library
name: demo-frontend
tag: latest
pullPolicy: Always