From 72934cb152963449de15e6702fbe8a25ccff684c Mon Sep 17 00:00:00 2001 From: Lan Liang Date: Fri, 18 Aug 2023 12:43:02 +0000 Subject: [PATCH] u --- .github/scripts/kind.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/scripts/kind.sh b/.github/scripts/kind.sh index aa09e6244..1694b7b52 100755 --- a/.github/scripts/kind.sh +++ b/.github/scripts/kind.sh @@ -1,14 +1,15 @@ -#!/bin/bash +#!/usr/bin/env bash set -o errexit set -o nounset set -o pipefail + wget -q https://github.com/kubernetes-sigs/kind/releases/download/v0.20.0/kind-linux-amd64 chmod +x kind-linux-amd64 && mv kind-linux-amd64 /usr/local/bin/kind K8SVERSION=${K8SVERSION:-"v1.25.3"} -WORKSPACE=${WORKSPACE:-$PWD} +WORKSPACE=$PWD sed -i 's/K8SVERSION/'$K8SVERSION'/g' $WORKSPACE/.github/scripts/kind.yaml sed -i 's#WORKSPACE#'$WORKSPACE'#g' $WORKSPACE/.github/scripts/kind.yaml