Skip to content

Commit 2d04a16

Browse files
committed
god im so stupid
1 parent dff5a29 commit 2d04a16

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
2424
run: |
2525
mkdir -p ~/.ssh
26-
MACHINE_IP="$(tailscale ip -4 $MACHINE)"
26+
MACHINE_IP="$(tailscale ip -4 $MACHINE_NAME)"
2727
ssh-keyscan $MACHINE_IP >> ~/.ssh/known_hosts
2828
printf "%s" "$SSH_PRIVATE_KEY" > ~/.ssh/key
2929
# add a new line to the end of the private key file
@@ -32,7 +32,7 @@ jobs:
3232
chmod 600 ~/.ssh/key
3333
- name: Deploy website
3434
run: |
35-
MACHINE_IP="$(tailscale ip -4 $MACHINE)"
35+
MACHINE_IP="$(tailscale ip -4 $MACHINE_NAME)"
3636
ssh -i ~/.ssh/key "kenneth@$MACHINE_IP" /bin/bash << EOF
3737
cd /opt/website
3838
git pull

0 commit comments

Comments
 (0)