From 3f264803469d8297521c78c43099d018f7bff2de Mon Sep 17 00:00:00 2001 From: Jesper Terkelsen Date: Wed, 18 Feb 2026 20:18:00 +0100 Subject: [PATCH] fix: detect architecture when installing ArgoCD CLI The argocd-wait-sync action hardcoded argocd-linux-amd64, which would fail on ARM64 runners. Now detects architecture via uname -m and downloads the correct binary (amd64 or arm64). Co-Authored-By: Claude Opus 4.6 --- .github/actions/argocd-wait-sync/action.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/actions/argocd-wait-sync/action.yml b/.github/actions/argocd-wait-sync/action.yml index 662392d..e189eab 100644 --- a/.github/actions/argocd-wait-sync/action.yml +++ b/.github/actions/argocd-wait-sync/action.yml @@ -49,8 +49,14 @@ runs: - name: Install ArgoCD CLI shell: bash run: | - echo "Installing ArgoCD CLI..." - curl -sSL -o argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64 + ARCH=$(uname -m) + case "$ARCH" in + x86_64) ARGOCD_ARCH="amd64" ;; + aarch64) ARGOCD_ARCH="arm64" ;; + *) echo "Unsupported architecture: $ARCH"; exit 1 ;; + esac + echo "Installing ArgoCD CLI for $ARGOCD_ARCH..." + curl -sSL -o argocd "https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-${ARGOCD_ARCH}" sudo install -m 755 argocd /usr/local/bin/argocd rm argocd argocd version --client