fix app sync for argocd

This commit is contained in:
Luke Robles 2023-02-08 09:59:59 -08:00
parent 1d207a0a01
commit 51e3f0a5c9

View File

@ -51,8 +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.1.205 --auth-token $ARGOCD_TOKEN app create dragon-bot --upsert --file ./argocd-application.yaml -p image.tag=$CI_PIPELINE_IID
- /tmp/argocd --insecure --server 192.168.1.205 --auth-token $ARGOCD_TOKEN app sync dragon-bot
- /tmp/argocd --insecure --server 192.168.1.205 --auth-token $ARGOCD_TOKEN app set dragon-bot --helm-set image.tag=$CI_PIPELINE_IID
rules:
- changes:
- helm/*