Skip to content

Update App

Update App #11

Workflow file for this run

name: Update App
# Only trigger, when the build docker workflow succeeded
on:
workflow_run:
workflows: ["Docker Image CI"]
types:
- completed
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: update kubernetes pod
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
script: |
qq_bot=$(kubectl get pods -l app=qq-bot -o jsonpath='{.items[0].metadata.name}')
kubectl delete pod $qq_bot