Skip to content

Commit e8481f7

Browse files
author
Eduardo
committed
chore: change deploy file
1 parent 885d828 commit e8481f7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/DeployApp.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@ jobs:
1919
with:
2020
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
2121

22-
- name: Configurar chave SSH
23-
run: |
24-
mkdir -p ~/.ssh
25-
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
26-
chmod 600 ~/.ssh/id_rsa
22+
- name: Teste conexão SSH
23+
run: ssh -o StrictHostKeyChecking=no [email protected] "echo 'Conexão SSH bem-sucedida'"
2724

2825
- name: Deploy to EC2
2926
run: |

0 commit comments

Comments
 (0)