Skip to content

Commit 896257a

Browse files
authored
👷ci: GitHub Actions SSH 경로 오류 수정
1 parent bebfa7a commit 896257a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ jobs:
1414
uses: actions/checkout@v4
1515

1616
- name: Setup SSH
17+
shell: bash
1718
run: |
18-
mkdir -p ~/.ssh
19-
echo "${{ secrets.EC2_SSH_KEY }}" > ~/.ssh/id_rsa
20-
chmod 600 ~/.ssh/id_rsa
21-
ssh-keyscan -H ${{ secrets.EC2_HOST }} >> ~/.ssh/known_hosts
19+
mkdir -p "$HOME/.ssh"
20+
echo "${{ secrets.EC2_SSH_KEY }}" > "$HOME/.ssh/id_rsa"
21+
chmod 600 "$HOME/.ssh/id_rsa"
22+
ssh-keyscan -H ${{ secrets.EC2_HOST }} >> "$HOME/.ssh/known_hosts"
2223
2324
- name: Deploy to EC2
2425
run: |

0 commit comments

Comments
 (0)