fix(gitea): bypass run.sh entrypoint for the cache-server container
run.sh (act_runner's default image entrypoint) ignores any command args entirely - it always registers then execs `act_runner daemon` regardless, with no cache-server mode. The cache-server container was silently running as a second runner daemon instead. Override the entrypoint directly to tini + act_runner, skipping run.sh.
This commit is contained in:
@@ -91,6 +91,10 @@ services:
|
|||||||
runner-cache-server:
|
runner-cache-server:
|
||||||
image: gitea/act_runner:latest
|
image: gitea/act_runner:latest
|
||||||
container_name: gitea_runner_cache
|
container_name: gitea_runner_cache
|
||||||
|
# The image's default entrypoint (run.sh) ignores any command args and
|
||||||
|
# always registers-then-execs `act_runner daemon` regardless - it has no
|
||||||
|
# cache-server mode. Bypass it entirely and invoke act_runner directly.
|
||||||
|
entrypoint: ["/sbin/tini", "--"]
|
||||||
command: ["act_runner", "cache-server", "--config", "/data/config.yaml", "--host", "0.0.0.0", "--port", "8088", "--dir", "/data/cache"]
|
command: ["act_runner", "cache-server", "--config", "/data/config.yaml", "--host", "0.0.0.0", "--port", "8088", "--dir", "/data/cache"]
|
||||||
environment:
|
environment:
|
||||||
TZ: ${TIMEZONE:-Europe/Amsterdam}
|
TZ: ${TIMEZONE:-Europe/Amsterdam}
|
||||||
|
|||||||
Reference in New Issue
Block a user