Skip to content

Commit c3d884a

Browse files
committed
try ipv4 address
1 parent b56b57e commit c3d884a

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,13 +23,13 @@ jobs:
2323
SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
2424
run: |
2525
mkdir -p ~/.ssh
26-
MACHINE_IP="$(tailscale ip -6 $MACHINE)"
26+
MACHINE_IP="$(tailscale ip -4 $MACHINE)"
2727
ssh-keyscan $MACHINE_IP >> ~/.ssh/known_hosts
2828
printf "%s" "$SSH_KEY" > ~/.ssh/key
2929
chmod 600 ~/.ssh/key
3030
- name: Deploy website
3131
run: |
32-
MACHINE_IP="$(tailscale ip -6 $MACHINE)"
32+
MACHINE_IP="$(tailscale ip -4 $MACHINE)"
3333
ssh -i ~/.ssh/key "kenneth@$MACHINE_IP" <<EOF
3434
cd /opt/website
3535
git pull

0 commit comments

Comments
 (0)