Skip to content

Commit

Permalink
Merge pull request #59 from Xcceleran-do/master
Browse files Browse the repository at this point in the history
add github server to known hosts
  • Loading branch information
EsubalewAmenu authored Oct 11, 2024
2 parents c449169 + 2f9cd1d commit 79d6745
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ jobs:
- name: Add Jump Server to Known Hosts
run: ssh-keyscan -H ${{ secrets.JUMP_SERVER_IP }} >> ~/.ssh/known_hosts

- name: Add Target Server to Known Hosts
run: ssh-keyscan -H ${{ secrets.WORDPRESS_PRODUCTION_SERVER_IP }} >> ~/.ssh/known_hosts


- name: Add Target Server to Known Hosts via Jump Server
run: |
ssh -o StrictHostKeyChecking=no esubalew@${{ secrets.JUMP_SERVER_IP }} "ssh-keyscan -H ${{ secrets.WORDPRESS_PRODUCTION_SERVER_IP }} >> ~/.ssh/known_hosts"
- name: Sync Files to Target Server via Jump Server
run: |
Expand Down

0 comments on commit 79d6745

Please sign in to comment.