feat: 改用 Docker 模式运行 Gitea Actions
Some checks failed
Deploy BillAI / Deploy to Production (push) Failing after 26s

This commit is contained in:
CHE LIANG ZHAO
2026-01-26 18:30:28 +08:00
parent b7399d185f
commit a5f1a370c7
3 changed files with 22 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
# Gitea Actions Runner 配置
# 文档: https://docs.gitea.com/usage/actions/act-runner
# 模式: Docker 模式 - Job 在独立的 Docker 容器中执行
log:
# 日志级别: debug, info, warn, error
@@ -21,23 +22,23 @@ runner:
# 任务容器拉取策略: always, if-not-present, never
fetch_timeout: 5s
fetch_interval: 2s
# Runner 标签
# Runner 标签 - 使用 Docker 模式docker:latest 镜像自带 docker CLI
labels:
- "ubuntu-latest:host"
- "self-hosted:host"
- "ubuntu-latest:docker://docker:latest"
- "self-hosted:docker://docker:latest"
container:
# 容器网络模式
network: "host"
# 是否启用特权模式
privileged: false
# 容器选项
options:
# 容器启动选项 - 挂载 docker.sock 和项目目录
options: "-v /var/run/docker.sock:/var/run/docker.sock"
# 工作目录父路径
workdir_parent:
# 有效的卷挂载
# 有效的卷挂载 - 允许挂载的目录
valid_volumes:
- /workspace/**
- /**
# Docker 主机
docker_host: ""
# 强制拉取镜像