更换kubectl action
All checks were successful
Build Push and Deploy Image / build (push) Successful in 2m7s
All checks were successful
Build Push and Deploy Image / build (push) Successful in 2m7s
This commit is contained in:
@@ -84,22 +84,20 @@ jobs:
|
|||||||
|
|
||||||
#发布到 k8s
|
#发布到 k8s
|
||||||
- name: k8s Check and Apply New Deployment
|
- name: k8s Check and Apply New Deployment
|
||||||
uses: http://139.9.216.111:3000/bamanker/steevchen-kubectl@master
|
uses: http://139.9.216.111:3000/bamanker/kubectl-action@v1.4.0
|
||||||
|
|
||||||
with:
|
with:
|
||||||
config: ${{ secrets.KUBE_CONFIG }}
|
base64-kube-config: ${{ secrets.KUBE_CONFIG }}
|
||||||
command: apply -f ./deployment.yml
|
run: 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/steevchen-kubectl@master
|
uses: http://139.9.216.111:3000/bamanker/kubectl-action@v1.4.0
|
||||||
with:
|
with:
|
||||||
config: ${{ secrets.KUBE_CONFIG }}
|
base64-kube-config: ${{ secrets.KUBE_CONFIG }}
|
||||||
command: get pod -n default -l app=${{ env.APP_NAME }}
|
run: 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/steevchen-kubectl@master
|
uses: http://139.9.216.111:3000/bamanker/kubectl-action@v1.4.0
|
||||||
env:
|
|
||||||
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
|
||||||
with:
|
with:
|
||||||
command: rollout restart deployment ${{ env.APP_NAME }}-${{ gitea.ref_name }}
|
base64-kube-config: ${{ secrets.KUBE_CONFIG }}
|
||||||
|
run: kubectl rollout restart deployment ${{ env.APP_NAME }}-${{ gitea.ref_name }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user