-
Notifications
You must be signed in to change notification settings - Fork 14
28 lines (27 loc) · 1.08 KB
/
ngrok-kubesphere-v2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: example-ngrok-kubesphere-v2
on:
workflow_dispatch:
jobs:
example-ngrok-kubesphere-v2:
runs-on: ubuntu-latest
steps:
- name: Creating kind cluster
uses: helm/[email protected]
- name: Install KubeSphere
run: |
kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.1.1/kubesphere-installer.yaml
kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.1.1/cluster-configuration.yaml
- name: Expose Port for Kind
run: |
export ID=`docker ps | awk '{print $1}' | sed -n '2p'`
export IP=`docker inspect ${ID} |grep IPAddress | sed -n '2p'| grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'`
sudo apt-get install socat
socat TCP4-LISTEN:30880,reuseaddr,fork TCP4:${IP}:30880 &
- uses: shaowenchen/debugger-action@v2
name: debugger
timeout-minutes: 300
continue-on-error: true
with:
ngrok_token: ${{ secrets.NGROK_TOKEN }}
ngrok_addr_1: 30880
ngrok_proto_1: http