ngrok SSH tunnel (Ubuntu 20.04) #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "ngrok SSH tunnel (Ubuntu 20.04)" | |
on: | |
workflow_dispatch: | |
jobs: | |
ngrok_ssh_tunnel: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Start SSH via ngrok | |
run: ./start_ngrok_tunnel.sh | |
env: | |
NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }} | |
SSH_PUBLIC_KEY: ${{ secrets.NGROK_SSH_PUBLIC_KEY }} | |
shell: bash | |
- name: Keep tunnel alive for 24 hours | |
run: sleep 86400 | |
shell: bash |