feat(infra): add docker image build and deploy pipeline (#13)

This commit is contained in:
Stas
2026-03-05 04:01:08 +03:00
committed by GitHub
parent fad17b690f
commit 4ecafcfe23
11 changed files with 293 additions and 4 deletions

View File

@@ -37,6 +37,13 @@ bun run dev:bot
bun run dev:miniapp
```
## Docker smoke commands
```bash
bun run docker:build
bun run docker:smoke
```
## Review commands
```bash
@@ -59,12 +66,18 @@ bun run review:coderabbit
- CI runs in parallel matrix jobs on push/PR to `main`:
- `format:check`, `lint`, `typecheck`, `test`, `build`
- `terraform fmt -check`, `terraform validate`
- docker image builds for `apps/bot` and `apps/miniapp`
- CD deploys on successful `main` CI completion (or manual dispatch).
- CD is enabled when GitHub secrets are configured:
- `GCP_PROJECT_ID`
- `GCP_WORKLOAD_IDENTITY_PROVIDER`
- `GCP_SERVICE_ACCOUNT`
- optional for automated migrations: `DATABASE_URL`
- Optional GitHub variables for deploy:
- `GCP_REGION` (default `europe-west1`)
- `ARTIFACT_REPOSITORY` (default `household-bot`)
- `CLOUD_RUN_SERVICE_BOT` (default `household-dev-bot-api`)
- `CLOUD_RUN_SERVICE_MINI` (default `household-dev-mini-app`)
## IaC Runbook