From f1181cc62a0eeb2664d1d0d06623ff40dc6d8a9d Mon Sep 17 00:00:00 2001 From: TheFox0x7 Date: Sat, 6 Apr 2024 20:09:56 +0200 Subject: [PATCH] after reading labels, load them into registration --- internal/app/cmd/daemon.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/app/cmd/daemon.go b/internal/app/cmd/daemon.go index e56a13f..8de19f4 100644 --- a/internal/app/cmd/daemon.go +++ b/internal/app/cmd/daemon.go @@ -64,6 +64,7 @@ func runDaemon(ctx context.Context, configFile *string) func(cmd *cobra.Command, if len(ls) == 0 { log.Warn("no labels configured, runner may not be able to pick up jobs") } + reg.Labels = ls.ToStrings() if ls.RequireDocker() { dockerSocketPath, err := getDockerSocketPath(cfg.Container.DockerHost)