Skip to content

Commit 9b1bc54

Browse files
authored
๐Ÿ‘ทci: GitHub Actions: EC2 ๋ฐฐํฌ ์›Œํฌํ”Œ๋กœ์šฐ ์ˆ˜์ •
Change SSH key handling to avoid base64 decoding.
1 parent d41331f commit 9b1bc54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

โ€Ž.github/workflows/deploy.ymlโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup SSH
1717
run: |
1818
mkdir -p ~/.ssh
19-
echo "${{ secrets.EC2_SSH_KEY }}" | base64 --decode > ~/.ssh/id_rsa
19+
echo "${{ secrets.EC2_SSH_KEY }}" > ~/.ssh/id_rsa
2020
chmod 600 ~/.ssh/id_rsa
2121
ssh-keyscan -H ${{ secrets.EC2_HOST }} >> ~/.ssh/known_hosts
2222

0 commit comments

Comments
ย (0)