summaryrefslogtreecommitdiffstats
path: root/internal/app/run/runner.go
diff options
context:
space:
mode:
authorGianni Angelozzi <gianni@sistema3.it>2023-08-17 08:51:57 +0200
committerJason Song <i@wolfogre.com>2023-08-17 08:51:57 +0200
commit03f0829d097967849681b75b42d9b8b36576b056 (patch)
tree1214a0b1b5223b7e40275c670c0dd6b6b2cbe226 /internal/app/run/runner.go
parentUpdate to go1.21 in Dockerfile.rootless (#332) (diff)
downloadforgejo-runner-03f0829d097967849681b75b42d9b8b36576b056.tar.xz
forgejo-runner-03f0829d097967849681b75b42d9b8b36576b056.zip
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 <i@wolfogre.com> Co-authored-by: Gianni Angelozzi <gianni@sistema3.it> Co-committed-by: Gianni Angelozzi <gianni@sistema3.it>
Diffstat (limited to 'internal/app/run/runner.go')
-rw-r--r--internal/app/run/runner.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/app/run/runner.go b/internal/app/run/runner.go
index c9f5f3e..7be1dba 100644
--- a/internal/app/run/runner.go
+++ b/internal/app/run/runner.go
@@ -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,