ci: add gitea + runner
Push -> develop / Build Docker images (push) Failing after 8s
Push -> develop / Rolling deploy (push) Has been skipped
Push -> develop / Notify on result (push) Successful in 1s

This commit is contained in:
2026-06-23 00:26:00 +00:00
parent a02669118a
commit c4da5ab594
10 changed files with 325 additions and 84 deletions
+7 -7
View File
@@ -4,13 +4,12 @@
ansible.builtin.set_fact:
project_token: "{{ lookup('ansible.builtin.env', project_spec.token_env) }}"
- name: "Fail if token missing for {{ project_spec.project }}"
ansible.builtin.assert:
that:
- project_token | length > 0
fail_msg: >-
Env var {{ project_spec.token_env }} is empty/unset.
Export a fresh registration token (Settings > Actions > Runners) before running.
- name: "Warn and skip {{ project_spec.project }} — token missing"
ansible.builtin.debug:
msg: >-
Skipping {{ project_spec.project }}: env var {{ project_spec.token_env }} is empty/unset.
Export a fresh registration token (Gitea repo → Settings → Actions → Runners → Create new runner token).
when: project_token | length == 0
- name: "Install {{ project_spec.count }} runner(s) for {{ project_spec.project }}"
ansible.builtin.include_tasks: install_one_runner.yml
@@ -18,3 +17,4 @@
loop_control:
loop_var: idx
label: "{{ project_spec.project }}-{{ idx }}"
when: project_token | length > 0