pipisa -->> act_runner
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1s
This commit is contained in:
17
files/act_runner/act_runner.service
Normal file
17
files/act_runner/act_runner.service
Normal 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
|
||||
@@ -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 авторегистрация на основе токенов
|
||||
Reference in New Issue
Block a user