下面介绍一下对于gitlab runner 属性的配置
gitLab runner的配置文件存放的位置和其执行权限相关,当 gitLab runner作为root用户执行时,配置文件保存在/etc/gitlab-runner/config.toml;当 gitLab runner作为非root用户执行时,配置文件保存在~/.gitlab-runner/config.toml。
如下图所示:
concurrent = 5
log_level = "warning"
check_interval = 0
[[runners]]
name = "example-RUNNER"
url = "http://gitlab.example.com/"
token = "123456"
executor = "shell"
builds_dir = "/data/gitlab-runner/"
environment = ["ENV=value"