fix(redeploy): only docker from app #74
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 staging | |
| on: | |
| push: | |
| branches: | |
| - staging | |
| jobs: | |
| deploy: | |
| name: Deploy to VPS | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: SSH deploy | |
| uses: appleboy/ssh-action@v1 | |
| with: | |
| host: ${{ secrets.VPS_HOST }} | |
| username: ${{ secrets.VPS_USER }} | |
| key: ${{ secrets.VPS_SSH_KEY }} | |
| script: | | |
| cd /var/www/vps-monitor | |
| git pull origin staging | |
| docker compose -f deployment/docker-compose.yml build | |
| docker rm -f vps-monitor || true | |
| docker compose -f deployment/docker-compose.yml up -d --remove-orphans |