We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3d884a commit a683285Copy full SHA for a683285
1 file changed
.github/workflows/deploy.yml
@@ -20,12 +20,15 @@ jobs:
20
tags: tag:ci
21
- name: Add SSH key
22
env:
23
- SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
+ SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
24
run: |
25
mkdir -p ~/.ssh
26
MACHINE_IP="$(tailscale ip -4 $MACHINE)"
27
ssh-keyscan $MACHINE_IP >> ~/.ssh/known_hosts
28
- printf "%s" "$SSH_KEY" > ~/.ssh/key
+ printf "%s" "$SSH_PRIVATE_KEY" > ~/.ssh/key
29
+ # add a new line to the end of the private key file
30
+ # otherwise it won't be loaded properly
31
+ echo >> ~/.ssh/key
32
chmod 600 ~/.ssh/key
33
- name: Deploy website
34
0 commit comments