url via ENV
This commit is contained in:
parent
47ee3f1493
commit
b6a71a515f
7
init.go
7
init.go
|
@ -19,7 +19,6 @@ func Init() *Forge {
|
||||||
f := InitPB()
|
f := InitPB()
|
||||||
|
|
||||||
f.Machine = new(zoopb.Machine)
|
f.Machine = new(zoopb.Machine)
|
||||||
|
|
||||||
if err := f.Machine.ConfigLoad(); err != nil {
|
if err := f.Machine.ConfigLoad(); err != nil {
|
||||||
log.Log(WARN, "zoopb.ConfigLoad() failed", err)
|
log.Log(WARN, "zoopb.ConfigLoad() failed", err)
|
||||||
}
|
}
|
||||||
|
@ -117,11 +116,17 @@ func (f *Forge) InitPB() {
|
||||||
} else {
|
} else {
|
||||||
log.Log(INFO, "forgepb.Init() FORGE_GOSRC ", os.Getenv("FORGE_GOSRC"), "(go.work = false)")
|
log.Log(INFO, "forgepb.Init() FORGE_GOSRC ", os.Getenv("FORGE_GOSRC"), "(go.work = false)")
|
||||||
}
|
}
|
||||||
|
|
||||||
f.Repos = gitpb.NewRepos()
|
f.Repos = gitpb.NewRepos()
|
||||||
f.Repos.ConfigLoad()
|
f.Repos.ConfigLoad()
|
||||||
if f.Repos.HasFullScan {
|
if f.Repos.HasFullScan {
|
||||||
f.hasFullScan = true
|
f.hasFullScan = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if os.Getenv("FORGE_URL") != "" {
|
||||||
|
forgeURL = os.Getenv("FORGE_URL")
|
||||||
|
log.Info("got forge url", forgeURL)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// only init's the protobuf. intended to not scan or change anything
|
// only init's the protobuf. intended to not scan or change anything
|
||||||
|
|
Loading…
Reference in New Issue