fix: add runner registration

This commit is contained in:
KV-Tube Deployer 2026-03-28 11:19:12 +07:00
parent cd8a69f1ad
commit f14f0ac299

View file

@ -31,7 +31,18 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./runner-data:/data
command: ["/bin/forgejo-runner", "daemon"]
entrypoint:
- sh
- -c
- |
if [ ! -f /data/.runner ]; then
forgejo-runner register --no-interactive \
--instance http://server:3000 \
--token xP3IdP05YPJJZ504z7UzK90njFFzQnX4d77cJiCN \
--name synology-runner \
--labels ubuntu-latest:docker://node:20-bookworm,ubuntu-22.04:docker://node:20-bookworm,docker:host
fi
forgejo-runner daemon
environment:
- TZ=Asia/Ho_Chi_Minh