gitlab runner - xd21303/Notebook GitHub Wiki

gitlab-runner register 注册的过程生成以下的配置文件。

/etc/gitlab-runner/config.toml 文件的一些配置参考

concurrent = 1
check_interval = 0

[runners](/xd21303/Notebook/wiki/runners)
  name = "myrunner"
  url = "http://80.80.80.229:8091/"
  token = "ea7639970d12b0d377803be5a9f563"
  executor = "docker"
  clone_url = "http://80.80.80.229:8091/"
  [runners.docker]
    tls_verify = false
    image = "python:alpine"
    privileged = false
    disable_cache = false
    volumes = ["/cache"]
    shm_size = 0
    dns = ["1.1.1.1"]
    extra_hosts = ["gitlab.dfc.com:80.80.80.229"]
  [runners.cache]

clone_url = "http://80.80.80.229:8091/" 非常重要。

启动runner

gitlab-runner run