我的是gitea也可以和github 兼容,只是没有github 那么靓而已
安装一个gitea仓库
docker run - d -- name gitea \
- p3000: 3000 - p2222: 22 \
- v / git/ data: / data \
- v / etc/ timezone: / etc/ timezone: ro \
- v / etc/ localtime: / etc/ localtime: ro \
gitea/ gitea: 1.21 .1
settings >>> runners 如下:
生成runnner配置
docker run -- entrypoint= "" -- rm - it gitea/ act_runner: latest act_runner generate- config > / git/ conifg/ config. yaml
运行runners
docker run \
- v / git/ conifg/ config. yaml: / config. yaml \
- v / mmm/ act: / data \
- v / var / run/ docker. sock: / var / run/ docker. sock \
- e CONFIG_FILE = / config. yaml \
- e GITEA_INSTANCE_URL = http: / / 192.168 .0 .20 : 3000 \
- e GITEA_RUNNER_REGISTRATION_TOKEN = N2w3DRV3PO1ryzIwXZDsSOmTC9Wg9lOOZSg698Rd \
- e GITEA_RUNNER_NAME = act_runner \
- e GITEA_RUNNER_LABELS = act_runner \
-- name act_runner \
- d gitea/ act_runner: nightly
如下即可: