mirror of
https://github.com/go-gitea/gitea
synced 2025-10-26 08:58:24 +00:00
chore(runner): update runner status using proto define
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
@@ -8,11 +8,11 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"code.gitea.io/gitea/core"
|
||||
"code.gitea.io/gitea/models/db"
|
||||
repo_model "code.gitea.io/gitea/models/repo"
|
||||
user_model "code.gitea.io/gitea/models/user"
|
||||
"code.gitea.io/gitea/modules/timeutil"
|
||||
runnerv1 "gitea.com/gitea/proto-go/runner/v1"
|
||||
|
||||
"xorm.io/builder"
|
||||
)
|
||||
@@ -45,8 +45,8 @@ type Runner struct {
|
||||
RepoRange string // glob match which repositories could use this runner
|
||||
Token string `xorm:"CHAR(36) UNIQUE"`
|
||||
|
||||
// instance status (idle)
|
||||
Status core.RunnerStatus
|
||||
// instance status (idle, active, offline)
|
||||
Status runnerv1.RunnerStatus
|
||||
// Store OS and Artch.
|
||||
AgentLabels []string
|
||||
// Store custom labes use defined.
|
||||
|
||||
Reference in New Issue
Block a user