diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 91a6173..83865bd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -64,7 +64,11 @@ jobs: uses: actions/checkout@v4 with: path: ${{ github.workspace }}/src/github.com/${{ github.repository }} - + - name: Install kubectl + run: | + curl -LO https://dl.k8s.io/release/${{ vars.NSM_KUBERNETES_VERSION }}/bin/linux/amd64/kubectl + chmod +x ./kubectl + mv ./kubectl /usr/local/bin/kubectl - name: Setup gke run: | scripts/gke/gke-start.sh diff --git a/scripts/aws/aws-start.sh b/scripts/aws/aws-start.sh index d358fe3..561099e 100755 --- a/scripts/aws/aws-start.sh +++ b/scripts/aws/aws-start.sh @@ -6,11 +6,6 @@ export IAM_NAME=ebs-csi-controller-sa apt-get update && apt-get -y install curl dnsutils -curl -LO https://storage.googleapis.com/kubernetes-release/release/"$K8S_VERSION"/bin/linux/amd64/kubectl -chmod +x kubectl -mkdir -p ~/.local/bin -mv ./kubectl ~/.local/bin/kubectl - curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp; \ mv /tmp/eksctl /usr/local/bin; \