pipisa -->> act_runner
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1s

This commit is contained in:
hogweed1
2025-11-27 13:34:11 +10:00
parent b13a1cad49
commit bb687e42b0
2 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# /etc/systemd/system/act_runner.service
[Unit]
Description=Gitea Actions runner
Documentation=https://gitea.com/gitea/act_runner
#After=docker.service
[Service]
ExecStart=/usr/local/bin/act_runner daemon --config /etc/act_runner/config.yaml
ExecReload=/bin/kill -s HUP $MAINPID
WorkingDirectory=/var/lib/act_runner
TimeoutSec=0
RestartSec=10
Restart=always
#User=act_runner
[Install]
WantedBy=multi-user.target

View File

@@ -35,3 +35,23 @@
src: /usr/share/act_runner/act_runner-{{act_runner_version}}
dest: /usr/local/bin/act_runner
state: link
- name: Copy act_runner.service
register: act_runner_service_file
copy:
src: ../../files/act_runner/act_runner.service
dest: /etc/systemd/system/act_runner.service
# - name: ensure service
# ansible.builtin.systemd_service:
# name: act_runner
# state: started
# enabled: true
- name: Just force systemd to reread configs
ansible.builtin.systemd_service:
daemon_reload: true
when: act_runner_service_file.changed
#### TODO авторегистрация на основе токенов