Skip to content

Commit

Permalink
feature: add example
Browse files Browse the repository at this point in the history
  • Loading branch information
shaowenchen committed Jan 19, 2021
1 parent d5efb59 commit 5398da4
Show file tree
Hide file tree
Showing 8 changed files with 156 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/examples/frp-buildx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: example-frp-buildx
on:
workflow_dispatch:

jobs:
example-frp-buildx:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: shaowenchen/debugger-action@v1
name: debugger
timeout-minutes: 30
continue-on-error: true
with:
frp_server_addr: ${{ secrets.FRP_SERVER_ADDR }}
frp_server_port: ${{ secrets.FRP_SERVER_PORT }}
frp_token: ${{ secrets.FRP_TOKEN }}
ssh_port: 29001
28 changes: 28 additions & 0 deletions .github/workflows/examples/frp-go-v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

name: example-frp-go-v2
on:
workflow_dispatch:

jobs:
example-frp-go-v2:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- uses: shaowenchen/debugger-action@v2
name: debugger
timeout-minutes: 30
continue-on-error: true
with:
frp_server_addr: ${{ secrets.FRP_SERVER_ADDR }}
frp_server_port: ${{ secrets.FRP_SERVER_PORT }}
frp_token: ${{ secrets.FRP_TOKEN }}
ssh_port: 29002
20 changes: 20 additions & 0 deletions .github/workflows/examples/frp-kind.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: example-frp-kind
on:
workflow_dispatch:

jobs:
example-frp-kind:
runs-on: ubuntu-latest
steps:
- name: Creating kind cluster
uses: helm/kind-action@v1.0.0-rc.1
- uses: shaowenchen/debugger-action@v1
name: debugger
timeout-minutes: 30
continue-on-error: true
with:
frp_server_addr: ${{ secrets.FRP_SERVER_ADDR }}
frp_server_port: ${{ secrets.FRP_SERVER_PORT }}
frp_token: ${{ secrets.FRP_TOKEN }}
ssh_port: 29003

17 changes: 17 additions & 0 deletions .github/workflows/examples/frp-macos-shell-v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: example-frp-macos-shell-v2
on:
workflow_dispatch:

jobs:
example-frp-macos-shell-v2:
runs-on: macos-latest
steps:
- uses: shaowenchen/debugger-action@v2
name: debugger
timeout-minutes: 30
continue-on-error: true
with:
frp_server_addr: ${{ secrets.FRP_SERVER_ADDR }}
frp_server_port: ${{ secrets.FRP_SERVER_PORT }}
frp_token: ${{ secrets.FRP_TOKEN }}
ssh_port: 29004
16 changes: 16 additions & 0 deletions .github/workflows/examples/ngrok-buildx-v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: example-ngrok-buildx-v2
on:
workflow_dispatch:

jobs:
example-ngrok-buildx-v2:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: shaowenchen/debugger-action@v2
name: debugger
timeout-minutes: 30
continue-on-error: true
with:
ngrok_token: ${{ secrets.NGROK_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/examples/ngrok-go-v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

name: example-ngrok-go-v2
on:
workflow_dispatch:

jobs:
example-ngrok-go-v2:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- uses: shaowenchen/debugger-action@v2
name: debugger
timeout-minutes: 30
continue-on-error: true
with:
ngrok_token: ${{ secrets.NGROK_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/examples/ngrok-kind-v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: example-ngrok-kind-v2
on:
workflow_dispatch:

jobs:
example-ngrok-kind-v2:
runs-on: ubuntu-latest
steps:
- name: Creating kind cluster
uses: helm/kind-action@v1.0.0-rc.1
- uses: shaowenchen/debugger-action@v2
name: debugger
timeout-minutes: 30
continue-on-error: true
with:
ngrok_token: ${{ secrets.NGROK_TOKEN }}

14 changes: 14 additions & 0 deletions .github/workflows/examples/ngrok-macos-shell-v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: example-ngrok-macos-shell-v2
on:
workflow_dispatch:

jobs:
example-ngrok-macos-shell-v2:
runs-on: macos-latest
steps:
- uses: shaowenchen/debugger-action@v2
name: debugger
timeout-minutes: 30
continue-on-error: true
with:
ngrok_token: ${{ secrets.NGROK_TOKEN }}

0 comments on commit 5398da4

Please sign in to comment.