4 Commits

Author SHA1 Message Date
techknowlogick
51ab72875f Merge branch 'main' into offline_mode_support 2025-01-05 22:26:33 +00:00
TKaxv_7S
53f8bbc42f Merge remote-tracking branch 'gitea/main' into offline_mode_support
# Conflicts:
#	internal/app/run/runner.go
2024-12-01 19:49:59 +08:00
TKaxv_7S
dc3e71fe2f Merge branch 'main' into offline_mode_support 2024-03-17 03:56:52 +00:00
TKaxv_7S
1e0c58693b Add: Actions Offline Mode(depend on act offline_mode)
act pull #2128: https://github.com/nektos/act/pull/2128
2023-12-20 22:27:35 +08:00
3 changed files with 3 additions and 0 deletions

View File

@@ -186,6 +186,7 @@ func (r *Runner) run(ctx context.Context, task *runnerv1.Task, reporter *report.
Workdir: filepath.FromSlash(fmt.Sprintf("/%s/%s", strings.TrimLeft(r.cfg.Container.WorkdirParent, "/"), preset.Repository)),
BindWorkdir: false,
ActionCacheDir: filepath.FromSlash(r.cfg.Host.WorkdirParent),
ActionOfflineMode: r.cfg.Cache.OfflineMode,
ReuseContainers: false,
ForcePull: r.cfg.Container.ForcePull,

View File

@@ -59,6 +59,7 @@ cache:
# If it's specified, act_runner will use this URL as the ACTIONS_CACHE_URL rather than start a server by itself.
# The URL should generally end with "/".
external_server: ""
offline_mode: false
container:
# Specifies the network to which the container will connect.

View File

@@ -40,6 +40,7 @@ type Cache struct {
Host string `yaml:"host"` // Host specifies the caching host.
Port uint16 `yaml:"port"` // Port specifies the caching port.
ExternalServer string `yaml:"external_server"` // ExternalServer specifies the URL of external cache server
OfflineMode bool `yaml:"offline_mode"`
}
// Container represents the configuration for the container.