705bb1e6b3
Project CI / AI game creator shell Rust lane 1/2 (push) Has been cancelled
Project CI / AI game creator shell Rust lane 2/2 (push) Has been cancelled
Project CI / AI game creator shell Rust smoke (push) Has been cancelled
Project CI / AI game creator shell Rust crates (push) Has been cancelled
Project CI / Backend tests (push) Has been cancelled
Project CI / Native shell tests (push) Has been cancelled
Project CI / Frontend tests (push) Has been cancelled
Project CI / Repository checks (push) Has been cancelled
Project CI / AI game creator shell web tests (push) Has been cancelled
Reviewed-on: https://git.genarrative.world/git/GenarrativeAI/Genarrative/pulls/462
24 lines
809 B
YAML
24 lines
809 B
YAML
# 只加入 runner 与 Gitea 共用的内部网络,不发布端口,不挂 Docker socket。
|
|
services:
|
|
gitea-runner-fetch-gate:
|
|
image: ${GITEA_FETCH_GATE_IMAGE:?Set a verified no-object-cache CI image ID with Python 3}
|
|
container_name: gitea-runner-fetch-gate
|
|
restart: unless-stopped
|
|
entrypoint: ['python3', '/app/gitea-runner-fetch-gate.py']
|
|
environment:
|
|
GITEA_RUNNER_UPSTREAM: http://gitea:3000
|
|
read_only: true
|
|
cap_drop: [ALL]
|
|
security_opt: [no-new-privileges:true]
|
|
cpus: 0.5
|
|
mem_limit: 256m
|
|
pids_limit: 128
|
|
volumes:
|
|
- /opt/genarrative-ci-cache/scripts/gitea-runner-fetch-gate.py:/app/gitea-runner-fetch-gate.py:ro
|
|
- /var/lib/genarrative-ci-cache-gate:/control
|
|
networks: [gitea-actions]
|
|
|
|
networks:
|
|
gitea-actions:
|
|
external: true
|