Merge pull request #77 from PCS-Poli-USP/develop #36
This file contains 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 Prod | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-prod: | |
name: Deploy flask backend to prod | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy flask backend to prod internuvem machine | |
uses: appleboy/ssh-action@v1.0.0 | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
port: ${{ secrets.PORT }} | |
script: ./start_uspolis_back.sh >> /home/ubuntu/script_log.log 2>&1 |