fixed cors origins #3
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 to DigitalOcean | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: [ 'api/**' ] # Only deploy when API changes | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to server | |
| uses: appleboy/ssh-action@v0.1.7 | |
| with: | |
| host: ${{ secrets.HOST }} | |
| username: ${{ secrets.USERNAME }} | |
| key: ${{ secrets.SSH_KEY }} | |
| script: | | |
| cd /root/band-manager | |
| git pull origin main | |
| cd api | |
| docker-compose -f docker-compose.prod.yml down | |
| docker-compose -f docker-compose.prod.yml up -d --build |