feat(configs): point gmail_mcp at gitea admin/hermes mcps repos (#26)
## Summary Updates `backend/configs/gmail_mcp.py` to point at the new `mcps` stack mirrors on gitea instead of the legacy `uber_backup` repo. Remotes now: - `gitea_hermes` → `https://gitea.rudolf.keenetic.link/hermes/mcps` - `gitea_admin` → `https://gitea.rudolf.keenetic.link/admin/mcps` Uses the `remotes=[{name, url}, …]` form introduced by #3. ## What changed vs the original #26 body - **Repo switched**: `uber_backup` → `mcps` (the gmail + telegram MCP server repo, now mirrored on gitea under both `admin/` and `hermes/`). - **GitHub remote dropped**: matches the pattern in `hermes_infra.py` after #8 and `docker_socket_proxy.py` after #23. The brencher container cannot reach `github.com` (squid returns HTTP 403 on CONNECT tunnel), so keeping a `github` remote would hard-fail the clone and trap brencher in the same retry loop that blocked #23 on `admin/reverseproxy` before its mirror was created. - **`branchNamePrefix="immoscout"` dropped**: the prefix is only applied to remotes named `origin` (see `backend/steps/git.py` ~L104); neither remote qualifies, so the field is a silent no-op. Matches the cleanup done in `hermes_infra.py` / `brencher.py`. ## Diff (vs `main`) ```diff -clone = GitClone(url="https://github.com/rudolf1/uber_backup.git", branchNamePrefix="immoscout") +clone = GitClone(remotes=[ + {"name": "gitea_hermes", "url": "https://gitea.rudolf.keenetic.link/hermes/mcps"}, + {"name": "gitea_admin", "url": "https://gitea.rudolf.keenetic.link/admin/mcps"}, +]) ``` ## Prerequisites (already done) Both target mirrors exist on gitea: - `admin/mcps` — already present (primary, not a fork). - `hermes/mcps` — forked in this session (id=10, fork of `admin/mcps`). ## Test plan 1. From the brencher state file for `gmail_mcp`, register `gitea_hermes/feat/migrate-gmail-mcp-to-multi-remote` as the desired branch. 2. Watch brencher logs: `Cloning repositories [...]` should succeed for both `gitea_hermes` and `gitea_admin`. 3. Confirm `gmail_mcp` stack redeploys against the new repo. Refs #20 Part of #18 --------- Co-authored-by: brencher_bot <rudolfss13@gmail.com> Reviewed-on: http://192.168.1.96/admin/brencher/pulls/26 Co-authored-by: brencher_bot (hermes) <rudolfss13+hermes@gmail.com>
This commit was merged in pull request #26.
This commit is contained in:
@@ -4,7 +4,10 @@ from steps.docker import DockerComposeBuild, DockerSwarmCheck, DockerSwarmDeploy
|
||||
from steps.git import GitClone, CheckoutMerged, GitUnmerge
|
||||
from steps.shared_state import SharedStateHolderInMemory
|
||||
|
||||
clone = GitClone(url="https://github.com/rudolf1/uber_backup.git", branchNamePrefix="immoscout")
|
||||
clone = GitClone(remotes=[
|
||||
{"name": "gitea_hermes", "url": "https://gitea.rudolf.keenetic.link/hermes/mcps"},
|
||||
{"name": "gitea_admin", "url": "https://gitea.rudolf.keenetic.link/admin/mcps"},
|
||||
])
|
||||
|
||||
dockerSwarmCheck = DockerSwarmCheck(
|
||||
stack_name="gmail_mcp",
|
||||
@@ -23,7 +26,7 @@ checkoutMerged = CheckoutMerged(clone,
|
||||
buildDocker = DockerComposeBuild(clone,
|
||||
docker_repo_username="",
|
||||
docker_repo_password="",
|
||||
docker_compose_path="gmail-mcp-server/docker-compose.yml",
|
||||
docker_compose_path="docker-compose.yml",
|
||||
docker_repo_url="https://registry.rudolf.keenetic.link",
|
||||
publish=False,
|
||||
envs=lambda: {
|
||||
@@ -39,7 +42,7 @@ deployDocker = DockerSwarmDeploy(
|
||||
"version": "auto-" + checkoutMerged.progress().version,
|
||||
},
|
||||
stack_name="gmail_mcp",
|
||||
docker_compose_path="gmail-mcp-server/docker-compose.yml",
|
||||
docker_compose_path="docker-compose.yml",
|
||||
)
|
||||
|
||||
checkPing1 = UrlCheck(
|
||||
|
||||
Reference in New Issue
Block a user