Skip to content

Commit 1827480

Browse files
author
Eduardo
committed
chore: change deploy file
1 parent e3e895e commit 1827480

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/DeployApp.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ 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
27+
28+
- name: Add SSH host key
29+
run: |
30+
mkdir -p ~/.ssh
31+
ssh-keyscan -H ec2-18-228-31-193.sa-east-1.compute.amazonaws.com >> ~/.ssh/known_hosts
32+
2233
- name: Deploy to EC2
2334
run: |
2435
ssh [email protected] << 'EOF'

0 commit comments

Comments
 (0)