Adding gitea act_runner roles

This commit is contained in:
ml
2026-07-02 07:49:53 +02:00
parent 2ccf2c9826
commit c968995481
10 changed files with 185 additions and 15 deletions
@@ -0,0 +1,21 @@
# Managed by Ansible — do not edit manually
log:
level: info
runner:
file: .runner # stored in each runner's /data volume
capacity: 1 # one concurrent job per runner container
timeout: 3h
fetch_timeout: 5s
fetch_interval: 2s
cache:
enabled: false # disable built-in cache server; use actions/cache if needed
container:
network: bridge # job containers get default bridge network with internet access
privileged: false
valid_volumes:
- /tmp
force_pull: false
force_rebuild: false
@@ -0,0 +1,17 @@
# Managed by Ansible — do not edit manually
services:
{% for i in range(1, act_runner_count + 1) %}
runner-{{ i }}:
image: gitea/act_runner:{{ act_runner_version }}
container_name: act-runner-{{ i }}
restart: unless-stopped
environment:
- GITEA_INSTANCE_URL=https://{{ domain_gitea }}
- GITEA_RUNNER_REGISTRATION_TOKEN={{ gitea_runner_registration_token }}
- GITEA_RUNNER_NAME=runner-{{ i }}
- CONFIG_FILE=/config.yml
volumes:
- {{ act_runner_data_dir }}/runner-{{ i }}:/data
- {{ act_runner_data_dir }}/config.yml:/config.yml:ro
- /var/run/docker.sock:/var/run/docker.sock
{% endfor %}