Skip to content

Commit

Permalink
feature/actions: gating ngrok access
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhuie19 committed Aug 31, 2023
1 parent 05f9ecc commit 451422d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tracing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ jobs:
if: steps.check-label.outputs.trace == 'true'
env:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
NGROK_USER: ${{ secrets.NGROK_USER }}
NGROK_PASSWORD: ${{ secrets.NGROK_PASSWORD }}
run: |
# Start Ngrok to expose the Grafana UI port
./ngrok authtoken $NGROK_AUTH_TOKEN
./ngrok http 3000 &
./ngrok http -auth="$NGROK_USER:$NGROK_PASSWORD" 3000 &
sleep 5 # Give ngrok some time to initialize and bind the port
echo "NGROK_URL=$(curl -s http://localhost:4040/api/tunnels | jq -r '.tunnels[0].public_url')" >> "$GITHUB_ENV"
- name: Print Grafana UI URL
Expand Down

0 comments on commit 451422d

Please sign in to comment.