We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b56b57e commit c3d884aCopy full SHA for c3d884a
1 file changed
.github/workflows/deploy.yml
@@ -23,13 +23,13 @@ jobs:
23
SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
24
run: |
25
mkdir -p ~/.ssh
26
- MACHINE_IP="$(tailscale ip -6 $MACHINE)"
+ MACHINE_IP="$(tailscale ip -4 $MACHINE)"
27
ssh-keyscan $MACHINE_IP >> ~/.ssh/known_hosts
28
printf "%s" "$SSH_KEY" > ~/.ssh/key
29
chmod 600 ~/.ssh/key
30
- name: Deploy website
31
32
33
ssh -i ~/.ssh/key "kenneth@$MACHINE_IP" <<EOF
34
cd /opt/website
35
git pull
0 commit comments