feat(#108)/deploy-backend #2
Workflow file for this run
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 App in Azure | |
# Dispara o workflow para push e pull request na branch 'dev' | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
jobs: | |
run-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: executing remote ssh commands using password | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.IP_VM_AZURE_DEV }} | |
username: ${{ secrets.USER_VM_AZURE_DEV }} | |
password: ${{ secrets.USER_VM_AZURE_DEV }} | |
port: 22 | |
request_pty: true | |
script: | | |
ls -alt | |
cd /home/Calculus-admin1/app | |
pwd | |
sudo ./manage_process_back.sh | |
echo "Starting deploy User Service" | |
sudo ./deploy_back.sh | |