mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-06 15:20:29 +00:00
chore(runner): add new register command
Signed-off-by: Bo-Yi.Wu <[email protected]>
This commit is contained in:
1 parent
cce60d466b
commit
a503f7429f
9 files changed
+128
-42
No files matched your search
@@ -94,11 +94,6 @@ func runDaemon(ctx context.Context, task *runtime.Task) func(cmd *cobra.Command,
|
||||
WithField("arch", cfg.Platform.Arch).
|
||||
Infoln("polling the remote server")
|
||||
|
||||
// register new runner
|
||||
if err := poller.Register(ctx, cfg.Runner); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// update runner status to idle
|
||||
log.Infoln("update runner status to idle")
|
||||
if _, err := cli.UpdateRunner(
|
||||
|
||||
Reference in new issue
Block a user