优化API请求处理逻辑,增加详细的错误处理和重试机制,提升稳定性和可用性。 #651
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Bot | |
| on: | |
| push: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: rsync deployments | |
| uses: burnett01/rsync-deployments@5.2 | |
| with: | |
| switches: -avzr | |
| path: . | |
| remote_path: ${{ secrets.DEPLOY_PATH }} | |
| remote_host: ${{ secrets.DEPLOY_HOST }} | |
| remote_user: ${{ secrets.DEPLOY_USER }} | |
| remote_key: ${{ secrets.DEPLOY_KEY }} | |
| - name: restart service | |
| uses: appleboy/ssh-action@master | |
| with: | |
| host: ${{ secrets.DEPLOY_HOST }} | |
| username: ${{ secrets.DEPLOY_USER }} | |
| key: ${{ secrets.DEPLOY_KEY }} | |
| script: | | |
| # systemctl --user restart goalkeepr_worker | |
| # systemctl --user restart goalkeepr | |
| cd /data | |
| # at lx | |
| #podman-compose down gk | |
| #podman-compose up -d gk | |
| # at eu | |
| docker compose build gk | |
| docker compose up -d gk |