with docker action

This commit is contained in:
2022-09-18 00:21:23 +02:00
parent 9696270d22
commit 8c6eea468e
7 changed files with 107 additions and 2 deletions

View File

@@ -30,6 +30,17 @@ func (a *Action) Execute(ctx context.Context, area *storage.Area) error {
zap.L().Debug("Execution done")
case "docker-build":
runCmd, err := builders.NewDockerBuild(zap.L()).Build(ctx, a.SchemaPath, action.Entry)
if err != nil {
return err
}
err = runCmd(ctx, area.Path)
if err != nil {
return err
}
return nil
default:
return errors.New("could not determine action type")
}