first-commit
This commit is contained in:
14
modules/setting/runners.go
Normal file
14
modules/setting/runners.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package setting
|
||||
|
||||
var Runner = struct {
|
||||
AutoStart bool
|
||||
Count int
|
||||
Image string
|
||||
}{}
|
||||
|
||||
func loadRunnerSettingsFrom(rootCfg ConfigProvider) {
|
||||
sec := rootCfg.Section("runners")
|
||||
Runner.AutoStart = sec.Key("AUTO_START").MustBool(true)
|
||||
Runner.Count = sec.Key("RUNNER_COUNT").MustInt(1)
|
||||
Runner.Image = sec.Key("RUNNER_IMAGE").MustString("devstar.cn/devstar/act_runner:latest")
|
||||
}
|
Reference in New Issue
Block a user