fix: simplify kubectl setup, now mounted via runner config
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 8s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
repair-agent 2026-04-02 16:21:31 +08:00
parent e9b9a4fd2f
commit 836c8e9c18

View File

@ -67,10 +67,7 @@ jobs:
docker push ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/k8s-pod-monitor:latest 2>&1 | tee -a /tmp/build-monitor.log
- name: Setup Kubectl
run: |
cp /opt/gitea/kubectl-bin /usr/local/bin/kubectl 2>/dev/null || \
{ curl -sL "https://dl.k8s.io/release/v1.28.2/bin/linux/amd64/kubectl" -o kubectl && chmod +x kubectl && mv kubectl /usr/local/bin/; }
kubectl version --client
run: kubectl version --client
- name: Set kubeconfig
run: |