Fix sync argo step
This commit is contained in:
parent
788b762029
commit
e7239ceb4c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user