Skip to content

Commit

Permalink
feat : Update be-autodeploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeTH916 authored Jan 28, 2024
1 parent de9e642 commit 5d738a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/be-autodeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,13 @@ jobs:
ls -la ~
mkdir -v -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
echo "SSH key write status: $?"
chmod 600 ~/.ssh/id_rsa
echo "chmod status: $?"
ls -la ~/.ssh
ssh-keyscan -H ${{ secrets.DEV_HOST }} >> ~/.ssh/known_hosts
echo "ssh-keyscan status: $?"
ls -la ~/.ssh
- name: SSH Connection to EC2 Instance
run: |
Expand Down

0 comments on commit 5d738a4

Please sign in to comment.