mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-09 16:50:28 +00:00
feat: add cache.offline_mode to reuse cached actions (#966)
Co-authored-by: silverwind <[email protected]> Co-authored-by: silverwind <[email protected]> Co-authored-by: TKaxv_7S <[email protected]> Co-authored-by: techknowlogick <[email protected]> Co-authored-by: TKaxv_7S <[email protected]> Co-authored-by: TKaxv_7S <[email protected]> Reviewed-on: https://gitea.com/gitea/runner/pulls/966 Reviewed-by: Nicolas <[email protected]> Reviewed-by: silverwind <[email protected]> Co-authored-by: Vi <[email protected]> Co-committed-by: Vi <[email protected]>
This commit is contained in:
1 parent
fab9714f9a
commit
2208e7ec63
6 files changed
+108
-46
No files matched your search
@@ -344,10 +344,11 @@ func (r *Runner) run(ctx context.Context, task *runnerv1.Task, reporter *report.
|
||||
runnerConfig := &runner.Config{
|
||||
// On Linux, Workdir will be like "/<parent_directory>/<owner>/<repo>"
|
||||
// On Windows, Workdir will be like "\<parent_directory>\<owner>\<repo>"
|
||||
Workdir: workdir,
|
||||
BindWorkdir: r.cfg.Container.BindWorkdir,
|
||||
ActionCacheDir: filepath.FromSlash(r.cfg.Host.WorkdirParent),
|
||||
AllocatePTY: r.cfg.Runner.AllocatePTY,
|
||||
Workdir: workdir,
|
||||
BindWorkdir: r.cfg.Container.BindWorkdir,
|
||||
ActionCacheDir: filepath.FromSlash(r.cfg.Host.WorkdirParent),
|
||||
AllocatePTY: r.cfg.Runner.AllocatePTY,
|
||||
ActionOfflineMode: r.cfg.Cache.OfflineMode,
|
||||
|
||||
ReuseContainers: false,
|
||||
ForcePull: r.cfg.Container.ForcePull,
|
||||
|
||||
Reference in new issue
Block a user