Skip to content

Commit

Permalink
fix: Add known hosts 단계 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hanueleee committed Dec 31, 2023
1 parent 6925b48 commit 1734d2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cicd-be.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Add known hosts
run: |
ssh-keyscan -H ${{ secrets.SERVER_IP }} >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
- name: SCP transfer
run: scp *.jar ${{ secrets.SSH_USER }}@${{ secrets.SERVER_IP }}:~/cicd

Expand Down

0 comments on commit 1734d2e

Please sign in to comment.