fix: support arm64 kubectl download
Deploy tsrun / deploy (push) Failing after 4m58s

This commit is contained in:
2026-07-22 14:15:50 +00:00 Unverified
parent 5a056c2a81
commit e9e4479ba3
+7 -1
View File
@@ -23,7 +23,13 @@ jobs:
- name: Install kubectl
run: |
curl -fsSL "https://dl.k8s.io/release/$(curl -fsSL https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -o /usr/local/bin/kubectl
ARCH=$(uname -m)
case "$ARCH" in
x86_64) KARCH=amd64 ;;
aarch64|arm64) KARCH=arm64 ;;
*) echo "unsupported kubectl arch: $ARCH" >&2; exit 1 ;;
esac
curl -fsSL "https://dl.k8s.io/release/$(curl -fsSL https://dl.k8s.io/release/stable.txt)/bin/linux/${KARCH}/kubectl" -o /usr/local/bin/kubectl
chmod +x /usr/local/bin/kubectl
- name: Configure kubectl