add script for Vargocd-autopilot installation

This commit is contained in:
2024-07-15 00:44:11 +10:00
parent 0778ba5821
commit a890a9e510
3 changed files with 14 additions and 0 deletions

View File

@@ -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