Difference between revisions of "/etc/gitlab-runner/config.toml"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
  
<pre>
 
cat /etc/gitlab-runner/config.toml
 
concurrent = 1
 
check_interval = 0
 
  
[session_server]
+
cat /etc/gitlab-runner/config.toml
  session_timeout = 1800
+
[[concurrent]] = 1
 
+
check_interval = 0
[[runners]]
+
  name = "YOUR_RUNNER_NAME"
+
[session_server]
  url = "https://URL_TO_YOUR_GITLAB"
+
  session_timeout = 1800
  token = "5f0a9aee2a8456ce1d865fdf9c1ftt"
+
  executor = "docker"
+
[[runners]]
  environment = ["GIT_SSL_NO_VERIFY=true"]
+
  name = "YOUR_RUNNER_NAME"
  [runners.docker]
+
  url = "https://URL_TO_YOUR_GITLAB"
    tls_verify = false
+
  token = "5f0a9aee2a8456ce1d865fdf9c1ftt"
    image = "alpine:latest"
+
  executor = "docker"
    privileged = true
+
  environment = ["GIT_SSL_NO_VERIFY=true"]
    disable_cache = false
+
  [runners.docker]
    volumes = ["/cache"]
+
    tls_verify = false
    shm_size = 0
+
    image = "alpine:latest"
  [runners.cache]
+
    privileged = true
    [runners.cache.s3]
+
    disable_cache = false
    [runners.cache.gcs]
+
    volumes = ["/cache"]
</pre>
+
    shm_size = 0
 +
  [runners.cache]
 +
    [runners.cache.s3]
 +
    [runners.cache.gcs]
  
  

Revision as of 07:40, 6 May 2021

https://docs.gitlab.com/runner/configuration/advanced-configuration.html


cat /etc/gitlab-runner/config.toml
concurrent = 1
check_interval = 0

[session_server]
  session_timeout = 1800

runners
  name = "YOUR_RUNNER_NAME"
  url = "https://URL_TO_YOUR_GITLAB"
  token = "5f0a9aee2a8456ce1d865fdf9c1ftt"
  executor = "docker"
  environment = ["GIT_SSL_NO_VERIFY=true"]
  [runners.docker]
    tls_verify = false
    image = "alpine:latest"
    privileged = true
    disable_cache = false
    volumes = ["/cache"]
    shm_size = 0
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]


cat /etc/gitlab-runner/config.toml
concurrent = 2
check_interval = 20

[session_server]
  session_timeout = 1800

[[runners]]
  name = "YOUR_RUNNER_NAME_1"
  output_limit = 102400
  url = "https://URL_TO_YOUR_GITLAB"
  limit = 1
  token = "5f0a9aee2a8456ce1d865fdf9c1fzz"
  executor = "shell"
  environment = ["GIT_SSL_NO_VERIFY=true"]
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]

[[runners]]
  name = "YOUR_RUNNER_NAME_2"
  output_limit = 102400
  url = "https://URL_TO_YOUR_GITLAB"
  limit = 1
  token = "5f0a9aee2a8456ce1d865fdf9c1fzz"
  executor = "shell"
  environment = ["GIT_SSL_NO_VERIFY=true"]
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]


See also

Advertising: