replace drone ci
This commit is contained in:
44
README.md
44
README.md
@@ -53,8 +53,46 @@ docker service update git_drone --force
|
||||
git.example.com {
|
||||
reverse_proxy git:3000
|
||||
}
|
||||
```
|
||||
|
||||
ci.example.com {
|
||||
reverse_proxy drone:80
|
||||
}
|
||||
## CI Deployment
|
||||
Since version 1.19.x Gitea has a CI handler integrated.
|
||||
These CI handler is mostly compatible with Github Actions.
|
||||
|
||||
Runner Setup: https://docs.gitea.com/usage/actions/act-runner
|
||||
Usage: https://docs.gitea.com/usage/actions/quickstart
|
||||
|
||||
```
|
||||
wget -O act_runner https://dl.gitea.com/act_runner/0.2.11/act_runner-0.2.11-linux-amd64
|
||||
chmod +x act_runner
|
||||
./act_runner --version
|
||||
|
||||
./act_runner generate-config > config.yml
|
||||
# interactive setup
|
||||
# ./act_runner --config config.yml register
|
||||
|
||||
./act_runner register --no-interactive --instance https://git.your.domain/ --token <token>
|
||||
# ./act_runner register --no-interactive --instance <instance_url> --token <registration_token> --name <runner_name> --labels <runner_labels>
|
||||
|
||||
./act_runner --config config.yml daemon
|
||||
```
|
||||
|
||||
Service File
|
||||
```
|
||||
[Unit]
|
||||
Description=Gitea Actions runner
|
||||
Documentation=https://gitea.com/gitea/act_runner
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/act_runner daemon --config /etc/act_runner/config.yaml
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
WorkingDirectory=/var/lib/act_runner
|
||||
TimeoutSec=0
|
||||
RestartSec=10
|
||||
Restart=always
|
||||
User=act_runner
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
Reference in New Issue
Block a user