feat(gitea_runner): add the gitea_runner role
Copied from the maintainer's local role and reworked for the Collection: the binary swap and rollback of an update go through the internal _binary_update role, input checks move to tasks/validate.yml, the removal ends the role, commands take argv, and the molecule tooling needs an explicit collections requirements file. Adds a molecule scenario with stub Docker, runner and release files. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
3ed614e00e
commit
e296eea609
28 files changed
+1988
-3
No files matched your search
@@ -0,0 +1,30 @@
|
||||
log:
|
||||
level: {{ gitea_runner_log_level | default('info') }}
|
||||
|
||||
runner:
|
||||
# Number of jobs run concurrently
|
||||
capacity: {{ gitea_runner_capacity }}
|
||||
|
||||
# Runner labels exposed to workflows
|
||||
labels:
|
||||
{% for label in gitea_runner_labels | default(['docker', 'ubuntu-lxc']) %}
|
||||
- {{ label }}
|
||||
{% endfor %}
|
||||
{% if gitea_runner_molecule_enabled | default(false) | bool %}
|
||||
- {{ gitea_runner_molecule_label }}:host
|
||||
{% endif %}
|
||||
|
||||
container:
|
||||
# Run job containers privileged
|
||||
privileged: {{ gitea_runner_container_privileged | default(false) | lower }}
|
||||
|
||||
# Docker daemon the runner uses. "-" still finds the daemon but does not mount
|
||||
# the socket into job containers. to_json keeps the value a quoted YAML string.
|
||||
docker_host: {{ gitea_runner_container_docker_host | default('unix:///var/run/docker.sock') | to_json }}
|
||||
|
||||
{% if gitea_runner_container_volumes is defined %}
|
||||
volumes:
|
||||
{% for volume in gitea_runner_container_volumes %}
|
||||
- "{{ volume }}"
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
Reference in new issue
Block a user