mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-07 15:50:28 +00:00
add forgeinstance
This commit is contained in:
1 parent
9c7d2be7c6
commit
378966e45f
7 files changed
+28
-22
No files matched your search
+5
-4
@@ -12,9 +12,10 @@ import (
|
||||
|
||||
// Runner runs the pipeline.
|
||||
type Runner struct {
|
||||
Machine string
|
||||
Environ map[string]string
|
||||
Client client.Client
|
||||
Machine string
|
||||
ForgeInstance string
|
||||
Environ map[string]string
|
||||
Client client.Client
|
||||
}
|
||||
|
||||
// Run runs the pipeline stage.
|
||||
@@ -48,5 +49,5 @@ func (s *Runner) Run(ctx context.Context, task *runnerv1.Task) error {
|
||||
l.Info("update runner status to idle")
|
||||
}()
|
||||
|
||||
return NewTask(task.Id, s.Client).Run(ctx, task)
|
||||
return NewTask(s.ForgeInstance, task.Id, s.Client).Run(ctx, task)
|
||||
}
|
||||
Reference in new issue
Block a user