add forgeinstance

This commit is contained in:
Lunny Xiao
2022-10-16 23:51:53 +08:00
committed by Jason Song
parent 9c7d2be7c6
commit 378966e45f
7 changed files with 28 additions and 22 deletions

View File

@ -16,11 +16,12 @@ import (
type (
// Config provides the system configuration.
Config struct {
Debug bool `envconfig:"GITEA_DEBUG"`
Trace bool `envconfig:"GITEA_TRACE"`
Client Client
Runner Runner
Platform Platform
Debug bool `envconfig:"GITEA_DEBUG"`
Trace bool `envconfig:"GITEA_TRACE"`
Client Client
Runner Runner
Platform Platform
ForgeInstance string
}
Client struct {
@ -68,6 +69,7 @@ func FromEnviron() (Config, error) {
if runner.UUID != "" {
cfg.Runner.UUID = runner.UUID
}
cfg.ForgeInstance = runner.ForgeInstance
}
// runner config