Merge pull request #456 from 3dwardch3ng/rework
add script for Vargocd-autopilot installation
This commit is contained in:
14
scripts/3.install-argocd-autopilot.sh
Normal file
14
scripts/3.install-argocd-autopilot.sh
Normal 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
|
||||
Reference in New Issue
Block a user