mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 01:19:02 +01:00
Make agent usable for external backends (#3270)
This commit is contained in:
@@ -213,7 +213,11 @@ func execWithAxis(c *cli.Context, file, repoPath string, axis matrix.Axis) error
|
||||
}
|
||||
|
||||
backendCtx := context.WithValue(c.Context, backendTypes.CliContext, c)
|
||||
backend.Init()
|
||||
backend.Init([]backendTypes.Backend{
|
||||
docker.New(),
|
||||
local.New(),
|
||||
kubernetes.New(),
|
||||
})
|
||||
|
||||
backendEngine, err := backend.FindBackend(backendCtx, c.String("backend-engine"))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user