1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/gitlab_runner/templates/config.toml.j2
Kristian Klausen c370c9d06e
gitlab_runner: Update concurreny math to reflect the new VM size
Fixes: 97bc3928 ("gitlab_runner: raise max memory to 2GB")
2024-02-18 18:20:09 +01:00

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 / 2048) | 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 %}