Skip to content

Commit

Permalink
.github/workflows/deploy.yaml: add known hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihohn committed Oct 15, 2024
1 parent 8ed8926 commit 8f7f3bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Add server to known_hosts
run: |
ssh-keyscan -H ${{ secrets.PROD_SERVER_IP }} >> ~/.ssh/known_hosts
# Step 3: Deploy the application
- name: Deploy to Prod Server
run: |
Expand Down

0 comments on commit 8f7f3bf

Please sign in to comment.