after reading labels, load them into registration

pull/176/head
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
1 changed files with 1 additions and 0 deletions

View File

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