yume-runner/runtime/runtime.go

22 lines
467 B
Go
Raw Normal View History

package runtime
import (
"context"
"gitea.com/gitea/act_runner/client"
runnerv1 "gitea.com/gitea/proto-go/runner/v1"
)
// Runner runs the pipeline.
type Runner struct {
2022-10-16 10:51:53 -05:00
Machine string
ForgeInstance string
Environ map[string]string
Client client.Client
}
// Run runs the pipeline stage.
func (s *Runner) Run(ctx context.Context, task *runnerv1.Task) error {
2022-11-04 04:23:59 -05:00
return NewTask(s.ForgeInstance, task.Id, s.Client, s.Environ).Run(ctx, task)
}