after reading labels, load them into registration

This commit is contained in:
TheFox0x7 2024-04-06 20:09:56 +02:00
parent a697b9c1ed
commit f1181cc62a
No known key found for this signature in database
GPG key ID: 6CA33903484AF7C2

View file

@ -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)