Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add github action debugger option #703

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

shenchucheng
Copy link
Collaborator

描述

在设置frp内网穿透后,可以直接通过ssh连接进Github Action的Runner,仅在*-debugger分支生效,需要配置frp相关信息

  • secrets.FPR_SERVER_ADDR: frpc 服务端地址,ip:port格式
  • secrets.FPR_TOKEN: frpc 服务端连接token
  • secrets.FPR_SSH_REMOTE_PORT, frp服务器用于转发ssh服务的端口
  • secrets.RSA_PUB, ssh公钥

Description

After setting up FRP intranet penetration configuration, you can directly connect to the GitHub Action Runner through SSH, which only takes effect on the *-debugger branch. You need to configure the following FRP-related information:

secrets.FPR_SERVER_ADDR: FRPC server address in the format ip:port
secrets.FPR_TOKEN: Connection token for the FRPC server
secrets.FPR_SSH_REMOTE_PORT: Port on the FRP server used for forwarding SSH services
secrets.RSA_PUB: SSH public key


Example

$ ssh runner@xxx.xxx.xxx.xxx -p xxxx
Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 6.2.0-1018-azure x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Sun Jan  7 10:27:56 UTC 2024

  System load:  0.0498046875       Processes:                146
  Usage of /:   75.4% of 83.16GB   Users logged in:          0
  Memory usage: 9%                 IPv4 address for docker0: 172.17.0.1
  Swap usage:   0%                 IPv4 address for eth0:    10.1.0.92

Expanded Security Maintenance for Applications is not enabled.

34 updates can be applied immediately.
21 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

28 additional security updates can be applied with ESM Apps.
Learn more about enabling ESM Apps service at https://ubuntu.com/esm


Last login: Sun Jan  7 10:27:01 2024 from 127.0.0.1
runner@fv-az915-713:~$ cd work/MetaGPT/MetaGPT/
runner@fv-az915-713:~/work/MetaGPT/MetaGPT$ git branch 
* feature-github-action-debugger

@voidking
Copy link
Collaborator

voidking commented Jan 7, 2024

LGTM

Copy link
Owner

@geekan geekan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@geekan geekan merged commit ce3dc74 into geekan:main Jan 8, 2024
1 of 2 checks passed
@shenchucheng shenchucheng deleted the feature-github-action-debugger branch January 10, 2024 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants