Run Forgejo Actions runner as a cluster Deployment on rpi.
Reuses the existing pi-runner registration and host Docker socket. Compose runner is stopped so it cannot double-poll.
This commit is contained in:
parent
20f967ffa3
commit
5e1a2b4f8d
3 changed files with 116 additions and 0 deletions
22
apps/base/forgejo/runner-configmap.yaml
Normal file
22
apps/base/forgejo/runner-configmap.yaml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: forgejo-runner-config
|
||||
namespace: forgejo
|
||||
data:
|
||||
config.toml: |
|
||||
log:
|
||||
level: info
|
||||
runner:
|
||||
file: /config/runner.ini
|
||||
capacity: 2
|
||||
timeout: 1h
|
||||
cache: /opt/siriusdevops/runner/cache
|
||||
cache:
|
||||
enabled: true
|
||||
dir: /opt/siriusdevops/runner/cache
|
||||
container:
|
||||
privileged: true
|
||||
options: -v /usr/local/bin/docker-static:/usr/bin/docker:ro -v /opt/siriusdevops/runner/cli-plugins:/usr/local/lib/docker/cli-plugins:ro -v /var/run/docker.sock:/var/run/docker.sock
|
||||
valid_volumes:
|
||||
- "**"
|
||||
Loading…
Reference in a new issue