managedkaos
04/28/2026, 7:04 PMGabriel Eweka
04/28/2026, 7:10 PMmanagedkaos
04/28/2026, 7:12 PMGabriel Eweka
04/29/2026, 6:06 PMmanagedkaos
04/29/2026, 6:16 PM- name: install argocd
shell: bash
run: |
ARCH=$(uname -m)
if [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then
FILE=argocd-linux-arm64
else
FILE=argocd-linux-amd64
fi
rm -f argocd
sudo rm -f /usr/local/bin/argocd
curl -fSL -o argocd "<https://github.com/argoproj/argo-cd/releases/latest/download/${FILE}>"
chmod +x argocd
sudo mv argocd /usr/local/bin/argocd
/usr/local/bin/argocd version --client
so that you don’t install argo:latest on each run. you may be able to save some build minutes also pin a specific version by creating a custom action (AKA docker image) that runs a specific version of agro for you. then all the steps for login, repo and app, and sync are bundled into the action. so you install once and call it many times vs installing many and calling many. of course, you’ll need to pass in arguments and mount the repo to get everything working but i think it may save build minutes over time. now, looking at the install step, it only takes 13s, so right now it might not be important or make much difference. maybe in the long run though.
at the least, you may want to pin the version of the argo cli you install so you are working with a known version. 👍🏾