# act_runner 配置(可选参考部署) # 工作流 runs-on: ubuntu-latest log: level: info runner: file: .runner capacity: 2 timeout: 3h insecure: false fetch_timeout: 5s fetch_interval: 2s # 拉取 uses: actions/checkout@v4 等 GitHub Action 时的镜像(替换 https://github.com) # 需 Gitea app.ini 中 [actions] DEFAULT_ACTIONS_URL = github # 留空则直连 github.com;第三方镜像不稳定时可改用 workflow 绝对 URL(见 .gitea/README.md) # # github_mirror: '' # 直连 GitHub # github_mirror: 'https://gitea.com' # 推荐:Gitea 官方 actions 镜像 # github_mirror: 'https://gitclone.com/github.com' # 第三方 GitHub 克隆镜像 # github_mirror: 'https://ghfast.top/https://github.com' # 需代理认证时易失败,不推荐 labels: - "ubuntu-latest:docker://catthehacker/ubuntu:act-22.04" - "ubuntu-22.04:docker://catthehacker/ubuntu:act-22.04" cache: enabled: false container: network: bridge privileged: false options: -v /var/run/docker.sock:/var/run/docker.sock valid_volumes: - /var/run/docker.sock