Support bot site

This commit is contained in:
Lunny Xiao
2022-11-16 18:08:12 +08:00
committed by Jason Song
parent bfcc6f56f3
commit 5fc35faf17
7 changed files with 20 additions and 23 deletions

View File

@ -15,12 +15,11 @@ 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
ForgeInstance string
Debug bool `envconfig:"GITEA_DEBUG"`
Trace bool `envconfig:"GITEA_TRACE"`
Client Client
Runner Runner
Platform Platform
}
Client struct {
@ -72,7 +71,6 @@ func FromEnviron() (Config, error) {
if runner.Address != "" {
cfg.Client.Address = runner.Address
}
cfg.ForgeInstance = runner.ForgeInstance
}
// runner config