Skip to content

Commit bfb7fe7

Browse files
author
Eduardo
committed
chore: update deploy file
1 parent c9f6b8c commit bfb7fe7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/DeployApp.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ jobs:
2424
mkdir -p ~/.ssh
2525
ssh-keyscan -H ec2-18-228-31-193.sa-east-1.compute.amazonaws.com >> ~/.ssh/known_hosts
2626
27+
- name: Teste de conexão SSH
28+
run: |
29+
ssh -o StrictHostKeyChecking=no -v [email protected] "echo 'Conexão SSH bem-sucedida'"
30+
2731
- name: Deploy to EC2
2832
run: |
29-
ssh [email protected] << 'EOF'
33+
ssh -o StrictHostKeyChecking=no [email protected] << 'EOF'
3034
cd /home/ubuntu/chaxis-api
3135
export NVM_DIR="$HOME/.nvm"
3236
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

0 commit comments

Comments
 (0)