Demo / hello (push) Successful in 16s
The runner's built-in cache server now backs actions/cache. - In the cluster, cache blobs go on a new PVC (gitea-actions-cache, 20Gi, default storage class) mounted at /cache in the runner container, so the cache survives runner restarts. The role creates the PVC before the Helm release. NFS doesn't enforce the size; the runner's own expiry (unused 7 days, or older than 30 days) keeps it bounded. - Fixed port 8088. Job containers reach it at the pod IP, which DinD's per-job networks route to because DinD shares the pod's network. - The dedicated-host runner gets the same config, with the cache on a bind mount under gitea_actions_host_dir. - gitea_actions_cache_enabled: false turns it all off again. Refs DevOps/software-infrastructure#56 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
864 B
Django/Jinja
25 lines
864 B
Django/Jinja
# {{ ansible_managed }}
|
|
# Runner config for the dedicated runner host (tasks/actions_host.yaml).
|
|
# Kept in step with the in-cluster runner's config in tasks/actions.yaml.
|
|
log:
|
|
level: info
|
|
cache:
|
|
enabled: {{ gitea_actions_cache_enabled | bool | lower }}
|
|
dir: {{ gitea_actions_cache_dir }}
|
|
port: {{ gitea_actions_cache_port }}
|
|
container:
|
|
require_docker: true
|
|
docker_timeout: 300s
|
|
# Use the cached job image; the labels below pin its version.
|
|
force_pull: false
|
|
runner:
|
|
capacity: {{ gitea_actions_runner_capacity }}
|
|
timeout: {{ gitea_actions_runner_job_timeout }}
|
|
shutdown_timeout: {{ gitea_actions_runner_shutdown_timeout }}
|
|
report_close_timeout: {{ gitea_actions_runner_report_close_timeout }}
|
|
fetch_timeout: {{ gitea_actions_runner_fetch_timeout }}
|
|
labels:
|
|
{% for label in gitea_actions_runner_labels %}
|
|
- "{{ label }}"
|
|
{% endfor %}
|