S19: establish engineering repository
This commit is contained in:
11
templates/common/ci/runner/config.yaml
Normal file
11
templates/common/ci/runner/config.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
log:
|
||||
level: info
|
||||
runner:
|
||||
file: .runner
|
||||
capacity: 1
|
||||
timeout: 2h
|
||||
shutdown_timeout: 2m
|
||||
labels:
|
||||
- @RUNNER@:host
|
||||
cache:
|
||||
enabled: false
|
||||
3
templates/common/ci/runner/docker-daemon.json
Normal file
3
templates/common/ci/runner/docker-daemon.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"insecure-registries": ["192.168.2.28:3000"]
|
||||
}
|
||||
9
templates/common/ci/runner/docker-desktop.conf
Normal file
9
templates/common/ci/runner/docker-desktop.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
# Desktop-specific override: start after graphical login, alongside Docker Desktop.
|
||||
[Unit]
|
||||
Requires=docker-desktop.service
|
||||
After=graphical-session.target docker-desktop.service
|
||||
PartOf=graphical-session.target docker-desktop.service
|
||||
|
||||
[Install]
|
||||
WantedBy=
|
||||
WantedBy=graphical-session.target
|
||||
19
templates/common/ci/runner/runner.service
Normal file
19
templates/common/ci/runner/runner.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=@PROJECT@ Gitea Actions runner
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=%h/.local/share/@PROJECT@-runner
|
||||
EnvironmentFile=%h/.config/@PROJECT@-runner/environment
|
||||
ExecStartPre=/usr/bin/env java %h/.local/share/@PROJECT@-runner/WaitForDocker.java 120
|
||||
TimeoutStartSec=150
|
||||
ExecStart=%h/.local/bin/act_runner daemon --config %h/.local/share/@PROJECT@-runner/config.yaml
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
KillSignal=SIGTERM
|
||||
TimeoutStopSec=150
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user