From 272b019cd0f57aa47e78aca61886a2eda276c6bf Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 19 Jul 2026 13:54:25 +0800 Subject: [PATCH] fix: patch image.registry in ArgoCD and update helm values to use Harbor --- .gitea/workflows/build.yml | 3 ++- deploy/helm/values.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 603cab4..35fa11a 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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 }} diff --git a/deploy/helm/values.yaml b/deploy/helm/values.yaml index 686750d..52d1464 100644 --- a/deploy/helm/values.yaml +++ b/deploy/helm/values.yaml @@ -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