Reorganize WNDB by responsibility and remove legacy scheme endpoints.\n\nRoute analysis and time-series access through project pools, preserve transactional realtime replacement, and refresh GIS materialized views after writes.\n\nAdd database architecture documentation, live pooling coverage, API contract updates, and executable container verification.\n\nBREAKING CHANGE: legacy scheme APIs and flat app.native.wndb module imports are removed.
27 lines
770 B
YAML
27 lines
770 B
YAML
name: Server CI/CD v2
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
build-test-publish-and-deploy:
|
|
uses: OrgTJWater/ci-templates/.gitea/workflows/container-cd.yml@68c8a9855391baa31d31523674f5812cd24ec604
|
|
with:
|
|
image_name: gitea.waternetwork.cn/orgtjwater/tjwater-backend
|
|
dockerfile: Dockerfile
|
|
build_context: .
|
|
test_command: |
|
|
python -m compileall -q app
|
|
python -c "import app.main"
|
|
python scripts/check_openapi.py
|
|
pytest -q tests
|
|
deploy_service: backend
|
|
deploy_host: 192.168.1.114
|
|
secrets:
|
|
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
|
DEV_DEPLOY_SSH_KEY: ${{ secrets.DEV_DEPLOY_SSH_KEY }}
|