Add ForcePull option (#339)

Close #271

What it does: instead of forcing the value of `ForcePull` to false, the user can now configure it on the runner yaml

Reviewed-on: https://gitea.com/gitea/act_runner/pulls/339
Reviewed-by: Jason Song <[email protected]>
Co-authored-by: Gianni Angelozzi <[email protected]>
Co-committed-by: Gianni Angelozzi <[email protected]>
This commit is contained in:
Gianni Angelozzi
2023-08-17 06:51:57 +00:00
committed by Jason Song
parent 7fc1b91ba6
commit 03f0829d09
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ func (r *Runner) run(ctx context.Context, task *runnerv1.Task, reporter *report.
ActionCacheDir: filepath.FromSlash(r.cfg.Host.WorkdirParent),
ReuseContainers: false,
ForcePull: false,
ForcePull: r.cfg.Container.ForcePull,
ForceRebuild: false,
LogOutput: true,
JSONLogger: false,