Commit Graph

2 Commits

Author SHA1 Message Date
dcsunny
8fab783aa9 feat(cache): 实现缓存服务器host.docker.internal支持和配置自动检测
- 在缓存服务器启动时自动将外部URL转换为host.docker.internal格式
- 添加useHostDockerInternal字段用于标识是否使用host.docker.internal映射
- 自动向容器选项添加--add-host=host.docker.internal:host-gateway参数
- 实现配置文件自动检测功能,当未指定配置文件时默认查找config.yaml
- 在cmd.go中添加PersistentPreRunE钩子函数进行配置文件预处理
- 添加调试输出语句用于跟踪缓存服务器启动流程
2026-02-02 14:28:02 +08:00
Zettat123
3dcfd6ea3d Run as cache server (#275)
This PR
- adds the `cache-server` command so act_runner can run as a cache server. When running as a cache server, act_runner only processes the requests related to cache and does not run jobs.
- adds the `external_server` configuration for cache. If specified, act_runner will use this URL as the ACTIONS_CACHE_URL instead of starting a cache server itself.

Reviewed-on: https://gitea.com/gitea/act_runner/pulls/275
Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-committed-by: Zettat123 <zettat123@gmail.com>
2023-07-07 08:28:54 +00:00