From dd7de62ef89e5b41bc69b95cc710f3d7edeef582 Mon Sep 17 00:00:00 2001 From: Sid Shukla Date: Thu, 27 Jun 2024 19:57:27 +0200 Subject: [PATCH] [WIP] Add a workflow to debug kind cluster on self-hosted-runners --- .github/workflows/kind.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/kind.yaml diff --git a/.github/workflows/kind.yaml b/.github/workflows/kind.yaml new file mode 100644 index 000000000..e2bbe4cf7 --- /dev/null +++ b/.github/workflows/kind.yaml @@ -0,0 +1,33 @@ +name: Kind debug Workflow + +on: + workflow_dispatch: + pull_request: +jobs: + test: + runs-on: + - self-hosted-ncn-dind + strategy: + matrix: + instance: [1] + steps: + - name: install packges + run: sudo apt-get install -y iputils-ping curl wget dnsutils + + - name: install kubectl + run: curl -LO "https://dl.k8s.io/release/v1.29.5/bin/linux/amd64/kubectl" && chmod +x kubectl && sudo mv kubectl /usr/local/bin/ + + - name: install kind + run: curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64 && chmod +x kind && sudo mv kind /usr/local/bin/ + + - name: Checkout code + uses: actions/checkout@v4 + + - name: docker info + run: docker info + + - name: Create k8s Kind Cluster + uses: helm/kind-action@v1 + + - name: sleep for a while + run: sleep 7200