Skip to content

Commit

Permalink
add extra steps on adding known hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
AzizMukhtorjonov committed Jun 25, 2024
1 parent d26e543 commit 0b993d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ jobs:
- name: Add server to known hosts
run: |
mkdir -p ~/.ssh
echo "${{ env.KNOWN_HOSTS }}" > ~/.ssh/known_hosts
touch ~/.ssh/known_hosts
echo "${{ secrets.SERVER_HOST }} ssh-rsa ${{ secrets.KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
chmod 600 ~/.ssh/known_hosts
chmod 700 ~/.ssh
- name: Deploy on Server
run: |
Expand Down

0 comments on commit 0b993d2

Please sign in to comment.