From 770038eb1c94baf7b78b06f51c8a19112823d29b Mon Sep 17 00:00:00 2001 From: 4o1x5 <4o1x5@4o1x5.dev> Date: Thu, 30 May 2024 06:32:17 +0200 Subject: [PATCH] forgejo blog: added network config to setting of runner --- content/post/guides/switch-to-forgejo-now/index.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/content/post/guides/switch-to-forgejo-now/index.md b/content/post/guides/switch-to-forgejo-now/index.md index 9984ef7..cb9a93c 100644 --- a/content/post/guides/switch-to-forgejo-now/index.md +++ b/content/post/guides/switch-to-forgejo-now/index.md @@ -124,13 +124,18 @@ Forgejo has runners that you can use with workflows to build software on every p enable = true; url = "https://git.${config.networking.domain}"; token = "place your token here"; - # + settings = { + container = { + # internet access for container + network = "bridge"; + }; + }; labels = [ "debian-latest:docker://node:18-bullseye" "ubuntu-latest:docker://node:18-bullseye" ]; # define the hostname so we know what server the runner is on. - name = config.networking.hostName; + name = "${config.networking.hostname}@${config.networking.hostName}"; }; }; }