fix: kubectl 自动安装兜底 + 阿里云镜像源
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 5m5s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
zyc 2026-04-04 13:54:49 +08:00
parent ffbd7cf016
commit f85a3d69d0

View File

@ -68,7 +68,12 @@ jobs:
docker push ${{ env.CR_SERVER_ACTIVE }}/${{ env.CR_ORG }}/video-web:latest docker push ${{ env.CR_SERVER_ACTIVE }}/${{ env.CR_ORG }}/video-web:latest
- name: Setup Kubectl - 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 - name: Set kubeconfig
run: | run: |