Demo / hello (push) Successful in 53s
Adds tasks/actions_host.yaml, which runs the Gitea Actions runner on a host outside the cluster with Docker Compose: a private DinD daemon for jobs (its own data directory, CPU and memory caps, lower CPU weight than the host's other containers), the runner, and the S5 cleanup script. Capacity, timeouts, pinned job images and cleanup settings are shared with the in-cluster runner. It registers once with a token fetched from the cluster and deletes the token file afterwards. Not used by the main play; a playbook targeting the host imports it with tasks_from. Refs DevOps/software-infrastructure#45 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
655 B
YAML
21 lines
655 B
YAML
#SPDX-License-Identifier: MIT-0
|
|
---
|
|
# tasks file for ansible-role-gitea
|
|
# Static imports so tags reach every task. Apply just the runner with
|
|
# ansible-playbook gitea.yaml --tags actions
|
|
# which leaves the main Gitea release untouched.
|
|
- name: gitea
|
|
import_tasks: gitea.yaml
|
|
tags: [gitea]
|
|
|
|
- name: gitea actions runner
|
|
import_tasks: actions.yaml
|
|
when: gitea_actions_enabled | bool
|
|
tags: [actions]
|
|
|
|
# Not part of the cluster play: a playbook targeting the runner host imports
|
|
# this with tasks_from, for example ci-runner.yaml in software-infrastructure.
|
|
# - import_role:
|
|
# name: ericomeehan.gitea
|
|
# tasks_from: actions_host.yaml
|