ci: add gitea + runner
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user