Difference between revisions of "/etc/gitlab-runner/config.toml"
Jump to navigation
Jump to search
(Created page with "<pre> cat /etc/gitlab-runner/config.toml concurrent = 1 check_interval = 0 [session_server] session_timeout = 1800 runners name = "YOUR_RUNNER_NAME" url = "https:/...") |
|||
(15 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | 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] | ||
+ | |||
+ | |||
<pre> | <pre> | ||
cat /etc/gitlab-runner/config.toml | cat /etc/gitlab-runner/config.toml | ||
− | concurrent = | + | concurrent = 2 |
− | check_interval = | + | check_interval = 20 |
[session_server] | [session_server] | ||
Line 8: | Line 37: | ||
[[runners]] | [[runners]] | ||
− | name = " | + | 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" | url = "https://URL_TO_YOUR_GITLAB" | ||
− | token = " | + | limit = 1 |
− | executor = " | + | token = "5f0a9aee2a8456ce1d865fdf9c1fzz" |
+ | executor = "shell" | ||
environment = ["GIT_SSL_NO_VERIFY=true"] | environment = ["GIT_SSL_NO_VERIFY=true"] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[runners.cache] | [runners.cache] | ||
[runners.cache.s3] | [runners.cache.s3] | ||
[runners.cache.gcs] | [runners.cache.gcs] | ||
+ | |||
</pre> | </pre> | ||
+ | |||
+ | == [runners.kubernetes] section == | ||
+ | * https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnerskubernetes-section | ||
+ | * <code>namespace string Namespace to run Kubernetes jobs in.</code> | ||
+ | |||
+ | == Related == | ||
+ | * [[Runners]] | ||
+ | * <code>[[Waiting for pod]]</code> | ||
+ | |||
+ | == See also == | ||
+ | * {{gitlab runner}} | ||
+ | |||
+ | |||
+ | [[Category:GitLab]] |
Latest revision as of 15:08, 8 November 2022
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]
[runners.kubernetes] section[edit]
- https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnerskubernetes-section
namespace string Namespace to run Kubernetes jobs in.
Related[edit]
See also[edit]
Advertising: