1、安装gitlab-runnerbrew install gitlab-runner
2、初始化gitlab-runner
gitlab-runner install
// 如果已经安装过了,可以执行gitlab-runner uninstall,然后再重新安装
~/.gitlab-runner/config.toml // 安装成功后会生成配置文件
concurrent = 1
check_interval = 0
shutdown_timeout = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "Mac.local"
url = "https://gitlab.com/"
id = 439
token = "ukTcm6Wfa1Ex4Wizx2dY"
token_obtained_at = 2023-03-11T17:36:01Z
token_expires_at = 0001-01-01T00:00:00Z
executor = "shell"
[runners.cache]
MaxUploadedArchiveSize = 0
4、验证gitlab-runner,联通gitlabgitlab-runner verify
5、创建日志文件夹,授予读写权限:
6、启动
gitlab-runner start // 启动
gitlab-runner status // 查看运行状态
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。