Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS authored Mar 24, 2024
1 parent 17e8cab commit 3767d31
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions back/readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,42 @@
## runner

```
RUNNER_ALLOW_RUNASROOT="1" ./config.sh
export RUNNER_ALLOW_RUNASROOT=1
```

```
export RUNNER_ALLOW_RUNASROOT="1"
nohup ./run.sh >/dev/null 2>&1
./config.sh xxxxxxxxxxxxxxxxxxxxxxx
```

```
nano /etc/systemd/system/github-runner.service
```

```
[Unit]
Description=GitHub Actions Runner
[Service]
Type=simple
WorkingDirectory=/root/actions-runner
ExecStart=/root/actions-runner/run.sh
User=root
Restart=always
Environment="RUNNER_ALLOW_RUNASROOT=1"
[Install]
WantedBy=multi-user.target
```

```
sudo systemctl daemon-reload
sudo systemctl start github-runner
```

```
sudo systemctl status github-runner
```

```
sudo systemctl enable github-runner
```

0 comments on commit 3767d31

Please sign in to comment.