feat(register): add labels to local runner file

This commit is contained in:
fuxiaohei
2022-11-22 20:56:14 +08:00
committed by Jason Song
parent 64c9856ba7
commit 86f66eaa45
3 changed files with 8 additions and 5 deletions

View File

@@ -47,6 +47,7 @@ func (p *Register) Register(ctx context.Context, cfg config.Runner) (*core.Runne
Name: resp.Msg.Runner.Name,
Token: resp.Msg.Runner.Token,
Address: p.Client.Address(),
Labels: cfg.Labels,
}
file, err := json.MarshalIndent(data, "", " ")