From 3fa42de10e351da09924a4855e255aca9a8f2f22 Mon Sep 17 00:00:00 2001 From: NikitaSkrynnik Date: Thu, 22 Aug 2024 09:49:41 +1100 Subject: [PATCH] install kubectl after cluster setups Signed-off-by: NikitaSkrynnik --- .github/workflows/ci.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 83865bd..fb546ad 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -64,11 +64,6 @@ 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 @@ -100,7 +95,7 @@ jobs: - name: Setup aks run: | az login --service-principal --username ${AZURE_SERVICE_PRINCIPAL} --password ${AZURE_SERVICE_PRINCIPAL_SECRET} --tenant ${AZURE_TENANT} - scripts/aks/aks-start.sh ${AZURE_RESOURCE_GROUP} ${AZURE_CLUSTER_NAME} ${AZURE_CREDENTIALS_PATH} ${KUBECONFIG} ${AKS_K8S_VERSION} + scripts/aks/aks-start.sh ${AZURE_RESOURCE_GROUP} ${AZURE_CLUSTER_NAME} ${AZURE_CREDENTIALS_PATH} ${KUBECONFIG} env: KUBECONFIG: /tmp/config3 AZURE_RESOURCE_GROUP: nsm-ci @@ -111,6 +106,11 @@ jobs: K8S_VERSION: ${{ vars.NSM_KUBERNETES_VERSION }} working-directory: ${{ 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: Run interdomain testing run: | echo "cluster1"