From 008f6c2d1d14f25ff24a2ed39aac153ec88b5308 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Fri, 11 Mar 2022 17:18:39 -0800 Subject: [PATCH] Adding wget and jq --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 69492095..951d1da5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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