Skip to content

Commit

Permalink
add github_actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hotchilipowder committed Dec 12, 2024
1 parent c8e1bf4 commit e9e7791
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions docs/mds/github_actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,43 @@
# Github Action


## Service


为了github action能服务器运行,按照[教程](https://docs.github.com/zh/actions/hosting-your-own-runners/managing-self-hosted-runners/configuring-the-self-hosted-runner-application-as-a-service)进行配置

```bash
sudo ./svc.sh install
sudo ./svc.sh start
```

如果是sudo的话,安装在 `/etc/systemd/system`下面,当然很多情况下需要配置Proxy,

`service`下面添加 `proxy`即可

```bash
[Service]
ExecStart=xxx/runsvc.sh
Environment="HTTPS_PROXY=http://localhost:1085"
```

然后重载这个服务

```bash
sudo systemctl daemon-reload
```

之后再重新启动即可
```bash
sudo ./svc.sh stop
sudo ./svc.sh start
```

## Root





## Introduction

Expand Down

0 comments on commit e9e7791

Please sign in to comment.