feat: update nginx configuration for domain change and enhance routing #2
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 Alibaba Simple Application Server | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy via SSH | |
| uses: appleboy/ssh-action@v1.0.3 | |
| with: | |
| host: ${{ secrets.VPS_HOST }} | |
| username: ${{ secrets.VPS_USER }} | |
| key: ${{ secrets.VPS_SSH_KEY }} | |
| script: | | |
| cd /root/penginfo-handal-hackathon | |
| git pull origin master | |
| docker build -t penginfo-handal-hackathon-web-frontend ./frontend | |
| docker build -t penginfo-handal-hackathon-api-server ./api | |
| docker restart penginfo-web-frontend | |
| docker restart penginfo-api-server |