Skip to content
Snippets Groups Projects
config.toml.j2 1.2 KiB
Newer Older
  • Learn to ignore specific revisions
  • 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 / 1024) | 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 %}