fix: kubectl 自动安装兜底 + 阿里云镜像源
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 5m5s
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:
parent
ffbd7cf016
commit
f85a3d69d0
@ -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: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user