File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -19,23 +19,15 @@ jobs:
1919 with :
2020 ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
2121
22- - name : Add EC2 to known hosts
23- run : |
24- mkdir -p ~/.ssh
25- ssh-keyscan -H ec2-18-228-31-193.sa-east-1.compute.amazonaws.com >> ~/.ssh/known_hosts
26-
27- - name : Teste de conexão SSH
28- run : |
29- ssh -o StrictHostKeyChecking=no -v [email protected] "echo 'Conexão SSH bem-sucedida'" 30-
3122 - name : Deploy to EC2
3223 run : |
33- ssh -o StrictHostKeyChecking=no [email protected] << 'EOF' 24+ 3425 cd /home/ubuntu/chaxis-api
3526 export NVM_DIR="$HOME/.nvm"
3627 [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
3728 git pull origin master
3829 npm install
3930 npx prisma migrate deploy
31+ npm run prebuild
4032 npm run build
4133 EOF
You can’t perform that action at this time.
0 commit comments