Adding wget and jq
This commit is contained in:
parent
eb69a04933
commit
008f6c2d1d
@ -47,7 +47,9 @@ build_and_push_container:
|
||||
|
||||
sync_argo:
|
||||
stage: .post
|
||||
image: python:alpine
|
||||
script:
|
||||
- apk add --no-cache jq wget
|
||||
- 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')
|
||||
- wget $latest -O /tmp/argocd && chmod +x /tmp/argocd
|
||||
- /tmp/argocd --insecure --server 192.168.1.205 --auth-token $ARGOCD_TOKEN app sync dragon-bot
|
||||
|
Loading…
x
Reference in New Issue
Block a user