周末开发了个 GitHub Actions 的调试工具: debuger-action,支持远程到 Runner

2021-01-18 11:29:20 +08:00
 shaowenchen

项目地址: https://github.com/shaowenchen/debugger-action

打开方式:

需要一个 Frp Server 。在 workflows 中 添加一个 job

- 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: ${{ secrets.SSH_PORT }}

就可以远程了 ssh root@frp_server_addr -p ssh_port,密码:root

最长单次可达 6 小时的 Debug 时长,支持 Linux 、MacOs 系统。

详情参看项目地址或 https://www.chenshaowen.com/blog/a-debugger-for-actions.html

1576 次点击
所在节点    GitHub
1 条回复
shaowenchen
2021-01-19 15:11:59 +08:00
v2 版已经支持 Ngrok

```bash
- uses: shaowenchen/debugger-action@v2
name: debugger
timeout-minutes: 30
continue-on-error: true
with:
ngrok_token: ${{ secrets.NGROK_TOKEN }}
```

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/745841

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX