AgentEvalTool/deploy/ci/runner/docker-compose.yml
sinohqb b451ac9625
Some checks are pending
CI / test (push) Waiting to run
feat(ci-cd): add self-hosted Gitea Actions runner + CI & production CD
- CI image (deploy/ci/Dockerfile) with warm deps, no GitHub/Docker Hub dependency
- act_runner deployment templates (compose/config/.env) for Gitea host 47.111.21.147
- Rewrite ci.yml: manual git clone (GITHUB_TOKEN), runs-on agenteval-ci, reuse ci-check.sh
- Add cd-production.yml: tag v*/dispatch trigger, test gate + version gate + ssh deploy
  via scripts/deploy-volcengine-102.sh (unchanged)
- t480 stays manual (internal network, unreachable from Gitea host)
2026-08-12 15:02:29 +08:00

25 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# act_runnerAgentEvalTool repo-level runner运行在 Gitea 服务器本机。
# 首次部署:
# 1) mkdir -p /opt/act_runner/{data,work}
# 2) cp deploy/ci/runner/config.yaml /opt/act_runner/data/config.yaml
# 3) cp deploy/ci/runner/docker-compose.yml /opt/act_runner/ && cd /opt/act_runner
# 4) cp deploy/ci/runner/.env.example .env 并填入 registration token
# token 来源repo → Settings → Actions → Runners → Create new Runner
# 5) docker compose up -d && docker logs -f act_runner # 看到 runner registered 即成功
services:
act_runner:
image: registry.solahqb22.cn/mirror/gitea/act_runner:0.2.11
container_name: act_runner
restart: unless-stopped
env_file: .env
environment:
CONFIG_FILE: /data/config.yaml
GITEA_INSTANCE_URL: https://git.solahqb22.cn
GITEA_RUNNER_NAME: gitea-host-agenteval
# label 即 workflow 的 runs-ondocker:// 前缀指向 job 容器镜像
GITEA_RUNNER_LABELS: "agenteval-ci:docker://registry.solahqb22.cn/ci/agenteval-ci:latest"
volumes:
- /opt/act_runner/data:/data # .runner 注册状态 + config.yaml删了需重新注册
- /opt/act_runner/work:/work # job workspace与 config.yaml 的 workdir_parent 对应)
- /var/run/docker.sock:/var/run/docker.sock # job 容器由宿主机 daemon 拉起sibling 容器)