From eb69a049332ff2e9ba68f53f79f995a001ccff87 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Fri, 11 Mar 2022 17:11:17 -0800 Subject: [PATCH] Pull latest argocd CLI for pipeline --- .gitignore | 0 .gitlab-ci.yml | 3 ++- app/questions.py | 0 3 files changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 app/questions.py diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 44861c9b..69492095 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,7 +48,8 @@ build_and_push_container: sync_argo: stage: .post script: - - wget https://github.com/argoproj/argo-cd/releases/download/v2.2.5/argocd-linux-amd64 -O /tmp/argocd && chmod +x /tmp/argocd + - 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 rules: - changes: diff --git a/app/questions.py b/app/questions.py old mode 100644 new mode 100755