Skip to content

Commit 111146d

Browse files
author
Eduardo
committed
chore: update
1 parent c6ce85d commit 111146d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/DeployApp.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ 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+
2227
- name: Deploy to EC2
2328
run: |
2429
ssh [email protected] << 'EOF'

0 commit comments

Comments
 (0)