ci: add teamcity build and deployment entry points
This commit is contained in:
14
README.md
14
README.md
@@ -34,6 +34,20 @@ pnpm test:compose
|
||||
pnpm build
|
||||
```
|
||||
|
||||
## TeamCity deployment scripts
|
||||
|
||||
TeamCity invokes repository-owned scripts rather than duplicating deployment logic in step configuration:
|
||||
|
||||
```text
|
||||
scripts/teamcity/validate.sh # install, lint, test, compose-invariant check, build
|
||||
scripts/teamcity/build-images.sh # build + push immutable IMAGE_TAG images
|
||||
scripts/teamcity/deploy.sh # pull, migrate, compose up -d, smoke test
|
||||
scripts/teamcity/smoke.sh # health/root checks against APP_BASE_URL
|
||||
scripts/teamcity/rollback.sh # redeploy the previous IMAGE_TAG
|
||||
```
|
||||
|
||||
`deploy.sh` never runs `docker compose down` as part of a routine deployment; `rollback.sh` never attempts an automatic database downgrade.
|
||||
|
||||
## Production topology
|
||||
|
||||
Production Docker Compose (`compose.yml`) publishes **exactly one** host port, on the `edge` (Nginx) service, which serves the built Angular app and reverse-proxies `/api/*` and `/health/*` to the internal `api` service. `api`, `worker`, `postgres`, and `redis` are reachable only over the internal Docker network. See `docs/architecture/deployment.md` for the full contract and `scripts/teamcity/` for the TeamCity-invoked build/deploy/rollback scripts.
|
||||
|
||||
Reference in New Issue
Block a user