Update .gitlab-ci.yml file to use argocd-server.argocd.svc.cluster.local instead of an IP

This commit is contained in:
Luke 2023-02-22 22:02:56 +00:00
parent 20a6bc6127
commit 6b248bc6a1

View File

@ -51,7 +51,7 @@ sync_argo:
- apk add --no-cache jq curl
- latest=$(curl -sL https://api.github.com/repos/argoproj/argo-cd/releases/latest | jq -r '.assets[] | select( .name | contains("argocd-linux-amd64")).browser_download_url')
- curl -Ls $latest -o /tmp/argocd && chmod +x /tmp/argocd
- /tmp/argocd --insecure --server 192.168.2.205 --auth-token $ARGOCD_TOKEN app set dragon-bot --helm-set image.tag=$CI_PIPELINE_IID
- /tmp/argocd --insecure --server argocd-server.argocd.svc.cluster.local --auth-token $ARGOCD_TOKEN app set dragon-bot --helm-set image.tag=$CI_PIPELINE_IID
rules:
- changes:
- helm/*