forgejo blog:
added network config to setting of runner
This commit is contained in:
parent
a6e7a1609a
commit
770038eb1c
|
@ -124,13 +124,18 @@ Forgejo has runners that you can use with workflows to build software on every p
|
||||||
enable = true;
|
enable = true;
|
||||||
url = "https://git.${config.networking.domain}";
|
url = "https://git.${config.networking.domain}";
|
||||||
token = "place your token here";
|
token = "place your token here";
|
||||||
#
|
settings = {
|
||||||
|
container = {
|
||||||
|
# internet access for container
|
||||||
|
network = "bridge";
|
||||||
|
};
|
||||||
|
};
|
||||||
labels = [
|
labels = [
|
||||||
"debian-latest:docker://node:18-bullseye"
|
"debian-latest:docker://node:18-bullseye"
|
||||||
"ubuntu-latest:docker://node:18-bullseye"
|
"ubuntu-latest:docker://node:18-bullseye"
|
||||||
];
|
];
|
||||||
# define the hostname so we know what server the runner is on.
|
# define the hostname so we know what server the runner is on.
|
||||||
name = config.networking.hostName;
|
name = "${config.networking.hostname}@${config.networking.hostName}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue