From a890a9e510369872584124849f82984534d198ab Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Mon, 15 Jul 2024 00:44:11 +1000 Subject: [PATCH] add script for Vargocd-autopilot installation --- .../{1.install_cilium.sh => 1.install-cilium.sh} | 0 scripts/3.install-argocd-autopilot.sh | 14 ++++++++++++++ ...3.bootstrap-argocd.sh => 4.bootstrap-argocd.sh} | 0 3 files changed, 14 insertions(+) rename scripts/{1.install_cilium.sh => 1.install-cilium.sh} (100%) create mode 100644 scripts/3.install-argocd-autopilot.sh rename scripts/{3.bootstrap-argocd.sh => 4.bootstrap-argocd.sh} (100%) diff --git a/scripts/1.install_cilium.sh b/scripts/1.install-cilium.sh similarity index 100% rename from scripts/1.install_cilium.sh rename to scripts/1.install-cilium.sh diff --git a/scripts/3.install-argocd-autopilot.sh b/scripts/3.install-argocd-autopilot.sh new file mode 100644 index 0000000..044221d --- /dev/null +++ b/scripts/3.install-argocd-autopilot.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e + +# get the latest version or change to a specific version +VERSION=$(curl --silent "https://api.github.com/repos/argoproj-labs/argocd-autopilot/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/') + +# download and extract the binary +curl -L --output - https://github.com/argoproj-labs/argocd-autopilot/releases/download/"$VERSION"/argocd-autopilot-linux-arm64.tar.gz | tar zx + +# move the binary to your $PATH +mv ./argocd-autopilot-* /usr/local/bin/argocd-autopilot + +# check the installation +argocd-autopilot version \ No newline at end of file diff --git a/scripts/3.bootstrap-argocd.sh b/scripts/4.bootstrap-argocd.sh similarity index 100% rename from scripts/3.bootstrap-argocd.sh rename to scripts/4.bootstrap-argocd.sh