using curl to get the argocd binary so we have less shit in the container
This commit is contained in:
parent
75c5988659
commit
616c745855
@ -49,9 +49,9 @@ sync_argo:
|
||||
stage: .post
|
||||
image: python:alpine
|
||||
script:
|
||||
- apk add --no-cache jq wget
|
||||
- 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')
|
||||
- wget $latest -O /tmp/argocd && chmod +x /tmp/argocd
|
||||
- curl -Ls $latest -o /tmp/argocd && chmod +x /tmp/argocd
|
||||
- /tmp/argocd --insecure --server 192.168.1.205 --auth-token $ARGOCD_TOKEN app sync dragon-bot
|
||||
rules:
|
||||
- changes:
|
||||
|
Loading…
x
Reference in New Issue
Block a user