mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
18 lines
709 B
Bash
18 lines
709 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: kind.sh
|
|
## Desc: Installs kind
|
|
################################################################################
|
|
|
|
# Install KIND
|
|
URL=$(curl -s https://api.github.com/repos/kubernetes-sigs/kind/releases/latest | jq -r '.assets[].browser_download_url | select(contains("kind-linux-amd64"))')
|
|
curl -L -o /usr/local/bin/kind $URL
|
|
chmod +x /usr/local/bin/kind
|
|
|
|
# Run tests to determine that the software installed as expected
|
|
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
|
if ! command -v kind; then
|
|
echo "Kind was not installed or found on PATH"
|
|
exit 1
|
|
fi
|