There was an error while loading. Please reload this page.
2 parents 38c7a8c + 24163f7 commit bae95adCopy full SHA for bae95ad
1 file changed
.github/workflows/deploy.yml
@@ -16,16 +16,9 @@ jobs:
16
- name: Set up SSH key from base64 secret
17
run: |
18
mkdir -p ~/.ssh
19
- cat <<EOF | base64 -d > ~/.ssh/id_rsa
20
- ${{ secrets.EC2_SSH_KEY_B64 }}
21
- EOF
+ echo -n "${{ secrets.EC2_SSH_KEY }}" | base64 -d > ~/.ssh/id_rsa
22
chmod 600 ~/.ssh/id_rsa
23
-
24
- #run: |
25
- # mkdir -p ~/.ssh
26
- # echo "${{ secrets.EC2_SSH_KEY }}" | base64 -d > ~/.ssh/id_rsa
27
- # chmod 600 ~/.ssh/id_rsa
28
- # ssh-keyscan -H 3.36.4.163 >> ~/.ssh/known_hosts
+ ssh-keyscan -H 3.36.4.163 >> ~/.ssh/known_hosts
29
30
31
- name: Run deploy.sh on EC2
0 commit comments