feat(ci): replace opencode review with PR-Agent
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Canceled after 45s
PR Check / Secret scan (gitleaks) (pull_request) Canceled after 0s
PR Check / Dependency audit (pull_request) Canceled after 0s
PR Check / Dockerfile lint (droast) (pull_request) Canceled after 0s
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Canceled after 45s
PR Check / Secret scan (gitleaks) (pull_request) Canceled after 0s
PR Check / Dependency audit (pull_request) Canceled after 0s
PR Check / Dockerfile lint (droast) (pull_request) Canceled after 0s
Run PR-Agent as a pinned webhook server on the Gitea Docker network and review on PR open plus slash commands. The per-PR opencode installer and verdict-posting step are removed. The server-side .env stays outside the repository; deploy/pr-agent/ holds the compose definition and operator notes.
This commit is contained in:
1 parent
9ecf504843
commit
c626cc9c1d
11 files changed
+251
-236
No files matched your search
@@ -0,0 +1,38 @@
|
||||
# PR-Agent webhook server for the self-hosted Gitea instance.
|
||||
#
|
||||
# Runs on the existing gitea_gitea network and publishes no ports. Gitea
|
||||
# reaches it as http://pr-agent:3000/api/v1/gitea_webhooks, so the webhook
|
||||
# endpoint is never internet-facing. Gitea still publishes comment links with
|
||||
# its own ROOT_URL (https://git.noelsabia.dev).
|
||||
#
|
||||
# Deployed by hand on server0 from /home/noel/self-hosted/pr-agent; see the
|
||||
# README next to this file.
|
||||
|
||||
services:
|
||||
pr-agent:
|
||||
image: pragent/pr-agent:0.49.0-gitea_app
|
||||
container_name: pr-agent
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
PORT: "3000"
|
||||
# Importing the app costs roughly 250 MB. Two workers leave headroom on
|
||||
# the 3.8 GB host that also runs Gitea, its runner and a web app.
|
||||
GUNICORN_WORKERS: "2"
|
||||
mem_limit: 1g
|
||||
networks:
|
||||
- gitea
|
||||
healthcheck:
|
||||
# The server has no HTTP health route; an open TCP socket is enough to
|
||||
# distinguish a running gunicorn master from a crashed container.
|
||||
test: ["CMD", "python", "-c", "import socket; socket.create_connection(('127.0.0.1', 3000), 3).close()"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
external: true
|
||||
name: gitea_gitea
|
||||
Reference in new issue
Block a user