mirror of https://code.forgejo.org/forgejo/runner
after reading labels, load them into registration
parent
a697b9c1ed
commit
f1181cc62a
|
@ -64,6 +64,7 @@ func runDaemon(ctx context.Context, configFile *string) func(cmd *cobra.Command,
|
||||||
if len(ls) == 0 {
|
if len(ls) == 0 {
|
||||||
log.Warn("no labels configured, runner may not be able to pick up jobs")
|
log.Warn("no labels configured, runner may not be able to pick up jobs")
|
||||||
}
|
}
|
||||||
|
reg.Labels = ls.ToStrings()
|
||||||
|
|
||||||
if ls.RequireDocker() {
|
if ls.RequireDocker() {
|
||||||
dockerSocketPath, err := getDockerSocketPath(cfg.Container.DockerHost)
|
dockerSocketPath, err := getDockerSocketPath(cfg.Container.DockerHost)
|
||||||
|
|
Loading…
Reference in New Issue