更改kubectl的action为手动下载
Some checks failed
Build Push and Deploy Image / build (push) Failing after 24m41s

This commit is contained in:
bamanker
2026-01-04 22:10:59 +08:00
parent 7ebd4ba157
commit 6e1ec6a761

View File

@@ -144,10 +144,11 @@ jobs:
#发布到 k8s
- name: Setup kubectl
uses: http://139.9.216.111:3000/bamanker/setup-kubectl@v4
with:
version: "v1.33" # 或指定具体版本,比如 "v1.29.0"
id: install
run: |
curl -LO "http://10.10.0.5:9000/test/kubectl" &&
chmod +x kubectl &&
mv kubectl /usr/local/bin/ &&
kubectl version
- name: Configure kubeconfig
# 假设您的 KUBE_CONFIG 秘密是 Base64 编码的 kubeconfig 文件内容