Fix sync argo step

This commit is contained in:
Luke Robles 2023-05-18 21:16:14 -07:00
parent 29ef031d21
commit 5222e203eb

View File

@ -41,7 +41,7 @@ steps:
environment: environment:
ARGOCD_TOKEN: ARGOCD_TOKEN:
from_secret: ARGOCD_TOKEN from_secret: ARGOCD_TOKEN
script: commands:
- apk add --no-cache jq curl - 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') - 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 - curl -Ls $latest -o /tmp/argocd && chmod +x /tmp/argocd