From ce4c9f13b522029a4db093be3730e4d343ce4044 Mon Sep 17 00:00:00 2001 From: panxiao81 Date: Wed, 16 Sep 2026 16:39:06 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20microVM=20kind=20=E5=86=92?= =?UTF-8?q?=E7=83=9F=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/vm-kind-smoke.yml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/vm-kind-smoke.yml diff --git a/.gitea/workflows/vm-kind-smoke.yml b/.gitea/workflows/vm-kind-smoke.yml new file mode 100644 index 0000000..0ede1f5 --- /dev/null +++ b/.gitea/workflows/vm-kind-smoke.yml @@ -0,0 +1,32 @@ +name: VM kind smoke + +on: + pull_request: + workflow_dispatch: + +jobs: + kind: + runs-on: [self-hosted, vm] + steps: + - name: Verify Docker + run: docker info + + - name: Install kind + shell: bash + run: | + set -euo pipefail + version=v0.33.0 + curl --fail --location --silent --show-error \ + --output /tmp/kind "https://kind.sigs.k8s.io/dl/${version}/kind-linux-amd64" + curl --fail --location --silent --show-error \ + --output /tmp/kind.sha256sum "https://kind.sigs.k8s.io/dl/${version}/kind-linux-amd64.sha256sum" + printf '%s %s\n' "$(cat /tmp/kind.sha256sum)" /tmp/kind | sha256sum --check + chmod 0755 /tmp/kind + + - name: Create and delete kind cluster + shell: bash + run: | + set -euo pipefail + trap '/tmp/kind delete cluster --name smoke' EXIT + /tmp/kind create cluster --name smoke --wait 180s + test "$(/tmp/kind get clusters)" = smoke