This commit is contained in:
long2ice
2023-06-02 21:44:26 +08:00
parent 6d9da92fec
commit 41fff40bac
5 changed files with 252 additions and 250 deletions

View File

@@ -13,19 +13,13 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
image-name: fastapi-admin
custom-args: --platform=linux/arm64,linux/amd64
deploy:
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Deploy
uses: appleboy/ssh-action@master
- name: Deploy meilisync-admin-demo
uses: steebchen/kubectl@v2.0.0
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd /root/docker/fastapi-admin/
docker compose up -d --pull always
config: ${{ secrets.KUBE_CONFIG }}
command: rollout restart deployment fastapi-admin