mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
It was forgotten once[1] to update it in both places, so avoid that issue in the future, by moving it to a variable. [1] c370c9d0 ("gitlab_runner: Update concurreny math to reflect the new VM size")
47 lines
1.2 KiB
Django/Jinja
47 lines
1.2 KiB
Django/Jinja
concurrent = 100
|
|
check_interval = 0
|
|
listen_address = ":9252"
|
|
|
|
[session_server]
|
|
session_timeout = 1800
|
|
|
|
[[runners]]
|
|
name = "{{ inventory_hostname }}"
|
|
url = "https://gitlab.archlinux.org"
|
|
token = "{{ vault_gitlab_runner_token }}"
|
|
executor = "docker"
|
|
[runners.custom_build_dir]
|
|
[runners.cache]
|
|
[runners.cache.s3]
|
|
[runners.cache.gcs]
|
|
[runners.docker]
|
|
tls_verify = false
|
|
image = "archlinux:latest"
|
|
privileged = false
|
|
disable_entrypoint_overwrite = false
|
|
oom_kill_disable = false
|
|
disable_cache = false
|
|
volumes = ["/cache"]
|
|
shm_size = 0
|
|
{% if 'gitlab_vm_runners' in group_names %}
|
|
|
|
[[runners]]
|
|
name = "{{ inventory_hostname }}"
|
|
url = "https://gitlab.archlinux.org"
|
|
token = "{{ vault_gitlab_vm_runner_token }}"
|
|
executor = "custom"
|
|
builds_dir = "/builds"
|
|
cache_dir = "/cache"
|
|
limit = {{ (ansible_memtotal_mb * 0.9 / gitlab_runner_libvirt_vm_memory) | round | int }}
|
|
environment = ["ARCHIVER_STAGING_DIR=/var/tmp"]
|
|
[runners.custom]
|
|
prepare_exec = "/usr/local/bin/libvirt-executor"
|
|
prepare_args = [ "prepare" ]
|
|
|
|
run_exec = "/usr/local/bin/libvirt-executor"
|
|
run_args = [ "run" ]
|
|
|
|
cleanup_exec = "/usr/local/bin/libvirt-executor"
|
|
cleanup_args = [ "cleanup" ]
|
|
{% endif %}
|