乐趣区

关于git:gitlabrunner-Mac安装步骤

1、装置 gitlab-runner
brew 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,联通 gitlab
gitlab-runner verify
5、创立日志文件夹,授予读写权限:

6、启动

gitlab-runner start  // 启动
gitlab-runner status // 查看运行状态 
退出移动版