Skip to content

Commit

Permalink
πŸ› Use IP address for connecting to server over hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
kierandrewett committed Jul 22, 2023
1 parent 7347e8e commit 23ef44b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Retrieve server hostname
run: |
TS_JSON=$(curl "https://api.tailscale.com/api/v2/device/${{ env.SERVER_ID }}" -u "${{ secrets.TS_KEY }}:")
HOSTNAME=$(echo $TS_JSON | jq -r '.name')
HOSTNAME=$(echo $TS_JSON | jq -r '.addresses[0]')
echo "SERVER_HOSTNAME=$HOSTNAME" >> $GITHUB_ENV
- name: Connect to Tailscale network
Expand Down

0 comments on commit 23ef44b

Please sign in to comment.