mirror of https://code.forgejo.org/forgejo/runner
Merge pull request 'default GITHUB_SERVER_URL with registration address' (#24) from earl-warren/runner:wip-sync into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/24 Reviewed-by: dachary <dachary@noreply.code.forgejo.org>2023-04-30-main-before-force-push v1.6.0
commit
bcd6096e5b
|
@ -65,6 +65,14 @@ func runDaemon(ctx context.Context, configFile *string) func(cmd *cobra.Command,
|
||||||
version,
|
version,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if cfg.Runner.Envs == nil {
|
||||||
|
cfg.Runner.Envs = make(map[string]string, 10)
|
||||||
|
}
|
||||||
|
|
||||||
|
if _, ok := cfg.Runner.Envs["GITHUB_SERVER_URL"]; !ok {
|
||||||
|
cfg.Runner.Envs["GITHUB_SERVER_URL"] = reg.Address
|
||||||
|
}
|
||||||
|
|
||||||
runner := &runtime.Runner{
|
runner := &runtime.Runner{
|
||||||
Client: cli,
|
Client: cli,
|
||||||
Machine: reg.Name,
|
Machine: reg.Name,
|
||||||
|
|
Loading…
Reference in New Issue