fix: kubectl 装到 /usr/bin 避开 /usr/local/bin 的 bind mount
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m16s

This commit is contained in:
zyc 2026-04-04 20:28:05 +08:00
parent f37c38d38b
commit d73175b101

View File

@ -88,7 +88,7 @@ jobs:
curl -LO "https://files.m.daocloud.io/dl.k8s.io/release/v1.28.0/bin/linux/amd64/kubectl" && break
echo "Download attempt $attempt failed, retrying in 5s..." && sleep 5
done
chmod +x kubectl && rm -rf /usr/local/bin/kubectl && mv kubectl /usr/local/bin/
chmod +x kubectl && mv kubectl /usr/bin/kubectl
fi
kubectl version --client