Skip to content

Commit

Permalink
Update kind.sh to allow multi arch (#55)
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
  • Loading branch information
JorTurFer committed Apr 13, 2022
1 parent bb50f49 commit 4c79091
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kind.sh
Expand Up @@ -55,7 +55,7 @@ main() {
fi

local arch
arch=$(uname -m)
arch=$(dpkg --print-architecture)
local cache_dir="$RUNNER_TOOL_CACHE/kind/$version/$arch"

local kind_dir="$cache_dir/kind/bin/"
Expand Down Expand Up @@ -171,7 +171,7 @@ install_kind() {

mkdir -p "$kind_dir"

curl -sSLo "$kind_dir/kind" "https://github.com/kubernetes-sigs/kind/releases/download/$version/kind-linux-amd64"
curl -sSLo "$kind_dir/kind" "https://github.com/kubernetes-sigs/kind/releases/download/$version/kind-linux-$arch"
chmod +x "$kind_dir/kind"
}

Expand All @@ -180,7 +180,7 @@ install_kubectl() {

mkdir -p "$kubectl_dir"

curl -sSLo "$kubectl_dir/kubectl" "https://storage.googleapis.com/kubernetes-release/release/$kubectl_version/bin/linux/amd64/kubectl"
curl -sSLo "$kubectl_dir/kubectl" "https://storage.googleapis.com/kubernetes-release/release/$kubectl_version/bin/linux/$arch/kubectl"
chmod +x "$kubectl_dir/kubectl"
}

Expand Down

0 comments on commit 4c79091

Please sign in to comment.