mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 17:54:07 +01:00
Various enhancements in configuration (#1645)
- backends: move to cli flags instead of os.Getenv - ssh: support 2fa with key and password - allow to set grpc jwt secret (solves todo) - allow to set default and max timeout (solves todo) Closes https://github.com/woodpecker-ci/woodpecker/issues/896 Closes https://github.com/woodpecker-ci/woodpecker/issues/1131
This commit is contained in:
@@ -203,14 +203,15 @@ func execWithAxis(c *cli.Context, file, repoPath string, axis matrix.Axis) error
|
||||
return err
|
||||
}
|
||||
|
||||
backend.Init(context.WithValue(c.Context, types.CliContext, c))
|
||||
backendCtx := context.WithValue(c.Context, types.CliContext, c)
|
||||
backend.Init(backendCtx)
|
||||
|
||||
engine, err := backend.FindEngine(c.String("backend-engine"))
|
||||
engine, err := backend.FindEngine(backendCtx, c.String("backend-engine"))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err = engine.Load(); err != nil {
|
||||
if err = engine.Load(backendCtx); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user