From 67b1911c479f48c6a881e336627fc2f9b894b127 Mon Sep 17 00:00:00 2001 From: sync-test Date: Wed, 8 Jul 2026 04:25:05 +0530 Subject: [PATCH] fix: Create config.yaml for forgejo-runner daemon The runner was failing because it expected /data/config.yaml to exist. Now creating the config file before starting the daemon. --- apps/forgejo/runner-deployment.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/apps/forgejo/runner-deployment.yaml b/apps/forgejo/runner-deployment.yaml index 76e61fa..f567d6c 100644 --- a/apps/forgejo/runner-deployment.yaml +++ b/apps/forgejo/runner-deployment.yaml @@ -57,7 +57,7 @@ spec: mountPath: /etc/docker/daemon.json subPath: daemon.json - name: registry-cert - mountPath: /etc/docker/certs.d/registry.nxtgauge.com/ca.crt + mountPath: /etc/docker/certs.d/ci.nxtgauge.com/ca.crt subPath: registry.crt readOnly: true resources: @@ -114,6 +114,19 @@ spec: --name "$RUNNER_NAME" \ --labels "$FORGEJO_RUNNER_LABELS" echo "Starting daemon..." + # Create config.yaml for daemon + if [ ! -f /data/config.yaml ]; then + cat > /data/config.yaml << CONFIGEOF +log: + level: info +runner: + file: .runner + daemon: + container: + network: host + privileged: true +CONFIGEOF + fi exec forgejo-runner daemon volumes: - name: docker-config