fix: runner config
Some checks failed
Update Automation Tests / Integration Tests (pull_request) Failing after 43s
Some checks failed
Update Automation Tests / Integration Tests (pull_request) Failing after 43s
This commit is contained in:
parent
890a23e8d5
commit
4971eca296
@ -81,6 +81,24 @@
|
||||
register: runner_registrations
|
||||
changed_when: runner_registrations.rc == 0
|
||||
|
||||
- name: Create runner config files
|
||||
ansible.builtin.copy:
|
||||
dest: "/etc/act_runner-{{ item }}/config.yaml"
|
||||
content: |
|
||||
log:
|
||||
level: info
|
||||
runner:
|
||||
file: .runner
|
||||
capacity: 1
|
||||
timeout: 3h
|
||||
container:
|
||||
network: host
|
||||
privileged: false
|
||||
options:
|
||||
workdir_parent:
|
||||
mode: "0644"
|
||||
with_sequence: start=1 end={{ runner_count }}
|
||||
|
||||
- name: Display registration warning if token not provided
|
||||
ansible.builtin.debug:
|
||||
msg: "Runner registration skipped - no token provided. Re-run with -e gitea_runner_token=TOKEN"
|
||||
@ -99,7 +117,7 @@
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart={{ runner_binary }} daemon
|
||||
ExecStart={{ runner_binary }} daemon --config config.yaml
|
||||
WorkingDirectory=/etc/act_runner-{{ item }}
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
Loading…
Reference in New Issue
Block a user