docs: add README with component map and selective CI behavior
CI/CD / build-and-push (push) Successful in 3s
CI/CD / build-and-push (push) Successful in 3s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
4928a3c1e4
commit
b6153f5859
@@ -0,0 +1,35 @@
|
|||||||
|
# polymarket-bot
|
||||||
|
|
||||||
|
Bot de paper-trading para Polymarket con estrategia bayesiana, API FastAPI y
|
||||||
|
dashboard React. Corre en k3s vía GitOps (Gitea Actions → registry → ArgoCD).
|
||||||
|
|
||||||
|
## Componentes
|
||||||
|
|
||||||
|
| Componente | Código | Imagen | CMD |
|
||||||
|
|---|---|---|---|
|
||||||
|
| bot | `bot/` | `polymarket-bot` | `python3 -m bot.main` |
|
||||||
|
| api | `api/` (+ `bot/` como librería) | `polymarket-bot-api` | `uvicorn api.main:app` |
|
||||||
|
| dashboard | `dashboard/` | `polymarket-bot-dashboard` | nginx estático |
|
||||||
|
|
||||||
|
Dashboard: https://polymarket.chemavx.xyz
|
||||||
|
|
||||||
|
## CI/CD
|
||||||
|
|
||||||
|
`.gitea/workflows/ci.yml` construye **solo las imágenes cuyos ficheros
|
||||||
|
cambiaron** en el push (diff contra `github.event.before`):
|
||||||
|
|
||||||
|
- `bot/`, `api/`, `requirements.txt` → bot + api (ambas imágenes copian las
|
||||||
|
mismas fuentes Python; solo cambia el CMD)
|
||||||
|
- `Dockerfile` → bot · `Dockerfile.api` → api · `dashboard/` → dashboard
|
||||||
|
- `.gitea/workflows/ci.yml`, primer push o force-push → todas (fallback seguro)
|
||||||
|
- `tests/`, docs → ninguna (la CI no construye ni despliega nada)
|
||||||
|
|
||||||
|
Las imágenes se tagean con `${GITHUB_SHA::8}`; el CI actualiza solo los
|
||||||
|
deployments reconstruidos en `k8s-manifests/polymarket-bot/` y ArgoCD
|
||||||
|
sincroniza vía webhook en segundos.
|
||||||
|
|
||||||
|
## Tests
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python3 -m pytest tests/ -q
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user