Add release versioning and Docker release workflow

This commit is contained in:
Sergey Filkin
2026-04-17 23:44:16 +03:00
parent 0fe596383e
commit 94a3e102b4
8 changed files with 129 additions and 1 deletions
+6
View File
@@ -10,6 +10,7 @@ from fastapi.responses import JSONResponse
from pydantic import BaseModel, ConfigDict, field_validator
from app.converter import convert, load_template_text
from app.version import __version__
DEFAULT_MAX_MARKDOWN_BYTES = 1_048_576
DEFAULT_MAX_REQUEST_BYTES = 1_200_000
@@ -154,6 +155,11 @@ async def health() -> dict[str, str]:
return {"status": "ok"}
@app.get("/version")
async def version() -> dict[str, str]:
return {"version": __version__}
@app.get("/ready")
async def ready() -> dict[str, Any]:
details: dict[str, Any] = {"status": "ok", "template_loaded": True}