From f85a3d69d049767666311977db7b188bd2d60574 Mon Sep 17 00:00:00 2001 From: zyc <1439655764@qq.com> Date: Sat, 4 Apr 2026 13:54:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20kubectl=20=E8=87=AA=E5=8A=A8=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E5=85=9C=E5=BA=95=20+=20=E9=98=BF=E9=87=8C=E4=BA=91?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/deploy.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index c0fd025..abec937 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -68,7 +68,12 @@ jobs: docker push ${{ env.CR_SERVER_ACTIVE }}/${{ env.CR_ORG }}/video-web:latest - name: Setup Kubectl - run: kubectl version --client + run: | + if ! command -v kubectl &>/dev/null; then + curl -LO "https://mirrors.aliyun.com/kubernetes/kubectl/v1.28.0/bin/linux/amd64/kubectl" + chmod +x kubectl && mv kubectl /usr/local/bin/ + fi + kubectl version --client - name: Set kubeconfig run: |