diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5eef606..7e6c541 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -51,17 +51,20 @@ jobs: - name: Setup cluster working-directory: ${{ github.repository }} run: | - GKE_K8S_VERSION=$(echo ${{ vars.NSM_KUBERNETES_VERSION }} | cut -c 2-) + GKE_K8S_VERSION=$(echo ${{ vars.NSM_KUBERNETES_VERSION }} | cut -d '.' -f 1,2 | cut -c 2-) + echo $GKE_K8S_VERSION gcloud components install gke-gcloud-auth-plugin gcloud components update + gcloud components list + gcloud container clusters create "${GKE_CLUSTER_NAME}" \ --project="${GKE_PROJECT_ID}" \ --machine-type="${GKE_CLUSTER_TYPE}" \ --num-nodes="${GKE_CLUSTER_NUM_NODES}" \ --zone="${GKE_CLUSTER_ZONE}" \ - --cluster-version="${GKE_K8S_VERSION}" \ + --cluster-version="$GKE_K8S_VERSION" \ --enable-gvnic -q echo "Writing config to ${KUBECONFIG}"