Difference between revisions of "Kubernetes/ArgoCD"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
= Install cli = | = Install cli = | ||
{{Note|Requires <code>jq</code>}} | |||
<source lang=bash> | <source lang=bash> | ||
REPO=argoproj/argo-cd | REPO=argoproj/argo-cd |
Revision as of 11:14, 8 June 2022
Install cli
Note: Requires jq
REPO=argoproj/argo-cd REPO_FILE=argocd-linux-amd64 BINARY=argocd LATEST=$(curl --silent "https://api.github.com/repos/${REPO}/releases/latest" | jq -r .tag_name | tr -d v); echo ${LATEST} TEMPDIR=$(mktemp -d) curl -L https://github.com/${REPO}/releases/download/v${LATEST}/${REPO_FILE} -o ${TEMPDIR}/${BINARY} sudo install ${TEMPDIR}/${BINARY} /usr/local/bin/${BINARY}