Skip to content

Commit

Permalink
chore: ngrok it
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmithgh committed Dec 11, 2023
1 parent 9f24ca8 commit ac4534a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ jobs:
cd "$GITHUB_WORKSPACE" || exit 1
export PATH="$GITHUB_WORKSPACE/tmp/bin:$PATH"
ngrok config add-authtoken "$NGROK_AUTH_TOKEN"
ngrok tcp 22
# client steps
# ssh -L 59000:localhost:5901 -C -N -p 19034 -l runner 2.tcp.ngrok.io
# open vnc client at localhost:59000
ngrok tcp 22 --log=stdout > "$GITHUB_WORKSPACE/tmp/ngrok.log" &
NGROK_TLS_URL="$(curl --silent http://127.0.0.1:4040/api/tunnels | jq -r '.tunnels[0].public_url')"
host="$(echo $NGROK_TLS_URL | awk -F:// '{print $2}' | awk -F: ' {print $1}')"
port="$(echo $NGROK_TLS_URL | awk -F:// '{print $2}' | awk -F: ' {print $2}')"
printf '\n\nngrok agent running avaible at %s\n\nRun the following command on your machine:\n\n ssh -L 59000:localhost:5901 -C -N -p %s -l runner %s\n\nConnect on your machine at: localhost:59000\n\n' $NGROK_TLS_URL $port $host
- name: (debug) Setup tmate session
if: ${{ inputs.enable_debug_tmate || inputs.enable_debug_vnc }}
Expand Down

0 comments on commit ac4534a

Please sign in to comment.