Skip to content

Commit 47dfdc8

Browse files
committed
fix(cd): correct ssh key handling in deploy pipeline
1 parent f4e7f5b commit 47dfdc8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ jobs:
4444
- name: Setup SSH
4545
run: |
4646
mkdir -p ~/.ssh
47-
cat << 'EOF' > ~/.ssh/ec2.pem
48-
${{ secrets.EC2_SSH_KEY }}
49-
EOF
47+
printf "%s\n" "${{ secrets.EC2_SSH_KEY }}" > ~/.ssh/ec2.pem
5048
chmod 600 ~/.ssh/ec2.pem
5149
ssh-keyscan -H ${{ secrets.EC2_HOST }} >> ~/.ssh/known_hosts
5250

0 commit comments

Comments
 (0)