mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2024-11-21 20:27:17 +03:00
feat: fill default task runner
This commit is contained in:
parent
c5edbbd004
commit
3281c6637d
1 changed files with 4 additions and 2 deletions
|
@ -35,6 +35,8 @@ func (s *Runner) run(ctx context.Context, stage *runnerv1.Stage) error {
|
|||
|
||||
l.Info("start running pipeline")
|
||||
// TODO: docker runner with stage data
|
||||
|
||||
return nil
|
||||
// task.Run is blocking, so we need to use goroutine to run it in backgroud
|
||||
// return task metadata and status to the server
|
||||
task := NewTask()
|
||||
return task.Run(ctx)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue