直接用本地kubectl
Some checks failed
Build Push and Deploy Image / build (push) Failing after 1m7s

This commit is contained in:
bamanker
2025-12-26 17:04:07 +08:00
parent 44c6fab1f4
commit 2cc70877a0

View File

@@ -84,25 +84,12 @@ jobs:
#发布到 k8s #发布到 k8s
- name: Generate kubeconfig and deploy - name: Generate kubeconfig and deploy
uses: http://139.9.216.111:3000/bamanker/kubectl-helm-action@master run: kubectl apply -f ./deployment.yml
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG }}
with:
args: kubectl apply -f ./deployment.yml
# command: apply -f http://139.9.216.111:3000/bamanker/myk3sTest/raw/branch/master/.deploy/deployment-temp.yml # command: apply -f http://139.9.216.111:3000/bamanker/myk3sTest/raw/branch/master/.deploy/deployment-temp.yml
- name: k8s Check Pods Health - name: k8s Check Pods Health
uses: http://139.9.216.111:3000/bamanker/kubectl-helm-action@master run: kubectl get pod -n default -l app=${{ env.APP_NAME }}
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG }}
with:
args: kubectl get pod -n default -l app=${{ env.APP_NAME }}
- name: k8s Update Deployment - name: k8s Update Deployment
uses: http://139.9.216.111:3000/bamanker/kubectl-helm-action@master run: kubectl rollout restart deployment ${{ env.APP_NAME }}-${{ gitea.ref_name }}
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG }}
with:
args: kubectl rollout restart deployment ${{ env.APP_NAME }}-${{ gitea.ref_name }}