fix: patch image.registry in ArgoCD and update helm values to use Harbor
Some checks failed
Build & Deploy / build (push) Failing after 9s
Some checks failed
Build & Deploy / build (push) Failing after 9s
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user