Skip to content

Commit

Permalink
Merge pull request #43 from Xcceleran-do/master
Browse files Browse the repository at this point in the history
add server's ip
  • Loading branch information
EsubalewAmenu authored Oct 11, 2024
2 parents 2ca9aa0 + 269e091 commit a458407
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ jobs:
with:
ssh-private-key: ${{ secrets.ESUBALEW_MAC_SSH_PRIVATE_KEY }} # Access SSH key from secrets.

- name: Set Environment Variables
run: |
echo "JUMP_SERVER_IP=${{ secrets.JUMP_SERVER_IP }}" >> $GITHUB_ENV
echo "WORDPRESS_PRODUCTION_SERVER_IP=${{ secrets.WORDPRESS_PRODUCTION_SERVER_IP }}" >> $GITHUB_ENV
- 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: Sync Files to Target Server via Jump Server
run: |
Expand Down

0 comments on commit a458407

Please sign in to comment.