Make agent usable for external backends (#3270)

This commit is contained in:
qwerty287
2024-02-08 16:33:22 +01:00
committed by GitHub
parent e64d596436
commit f92f8b17a3
20 changed files with 142 additions and 104 deletions

View File

@@ -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 {