We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dff5a29 commit 2d04a16Copy full SHA for 2d04a16
1 file changed
.github/workflows/deploy.yml
@@ -23,7 +23,7 @@ jobs:
23
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
24
run: |
25
mkdir -p ~/.ssh
26
- MACHINE_IP="$(tailscale ip -4 $MACHINE)"
+ MACHINE_IP="$(tailscale ip -4 $MACHINE_NAME)"
27
ssh-keyscan $MACHINE_IP >> ~/.ssh/known_hosts
28
printf "%s" "$SSH_PRIVATE_KEY" > ~/.ssh/key
29
# add a new line to the end of the private key file
@@ -32,7 +32,7 @@ jobs:
32
chmod 600 ~/.ssh/key
33
- name: Deploy website
34
35
36
ssh -i ~/.ssh/key "kenneth@$MACHINE_IP" /bin/bash << EOF
37
cd /opt/website
38
git pull
0 commit comments