ci: add runner config with xetup network and debug logging
This commit is contained in:
parent
5d0c73b514
commit
50b93a1a88
2 changed files with 23 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ services:
|
|||
image: code.forgejo.org/forgejo/runner:6.3.1
|
||||
container_name: xetup-runner
|
||||
restart: unless-stopped
|
||||
entrypoint: ["/bin/sh", "-c", "forgejo-runner daemon"]
|
||||
entrypoint: ["/bin/sh", "-c", "forgejo-runner daemon --config /etc/runner/config.yml"]
|
||||
user: "0:996" # root:docker - needed for /var/run/docker.sock access
|
||||
depends_on:
|
||||
- forgejo
|
||||
|
|
@ -47,6 +47,7 @@ services:
|
|||
volumes:
|
||||
- runner-data:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./runner-config.yml:/etc/runner/config.yml:ro
|
||||
networks:
|
||||
- xetup
|
||||
|
||||
|
|
|
|||
21
runner-config.yml
Normal file
21
runner-config.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
log:
|
||||
level: debug
|
||||
|
||||
runner:
|
||||
file: /data/.runner
|
||||
capacity: 1
|
||||
timeout: 3h
|
||||
fetch_timeout: 5s
|
||||
fetch_interval: 2s
|
||||
report_interval: 1s
|
||||
|
||||
cache:
|
||||
enabled: true
|
||||
|
||||
container:
|
||||
network: xetup
|
||||
privileged: false
|
||||
valid_volumes:
|
||||
- '**'
|
||||
docker_host: "-"
|
||||
force_pull: false
|
||||
Loading…
Reference in a new issue