22 Commits

Author SHA1 Message Date
3d15754936 fix(ci): push latest tag and reduce monitoring costs
- Add latest tag push alongside SHA tag for manual rollback/debugging
- Reduce log retention from 3 to 1 day
- Comment out bot_error_metrics and alerts to save ~$0.47/month
- Minor whitespace fix in cd.yml
2026-03-16 05:17:47 +04:00
c5c0b32f20 fix(cd): avoid deploying stale images and add cleanup policy 2026-03-16 04:56:42 +04:00
77094baa2b fix(ci): disable provenance to fix image tagging 2026-03-16 04:36:38 +04:00
cc423053e9 fix(cd): simplify webhook secret loading and add error checking 2026-03-16 04:07:02 +04:00
21303de0ba fix(cd): properly set webhook secret and add verification step 2026-03-16 03:58:16 +04:00
74348c3ef5 fix(ci): build Docker images for linux/amd64 only to fix Cloud Run deploys 2026-03-16 03:43:02 +04:00
543a6f90ef Use repo vars and streamline CI/CD workflows
Update GitHub Actions workflows to rely on repository variables and simplify build/deploy logic. cd.yml: switch secret/project lookups to vars, adjust workflow_run detection for auto-deploy, remove derived secret outputs, resolve Artifact Registry image tags from the triggering SHA, and use vars for Google Cloud auth and project references. ci.yml: add dev to PR branches, condense the quality matrix commands, rework the images job to authenticate and push only on branch pushes while doing build-only on PRs (with proper cache usage), add id-token permission, and introduce a final CI gate job that aggregates job results to block CD when CI fails. Also includes minor formatting and whitespace cleanups.
2026-03-16 00:39:35 +04:00
1cff14662e feat(cd): complete environment support for dev/prod deployments
- Add workflow_dispatch inputs for manual environment selection
- Add detect-environment job to centralize environment detection
- Support both auto-trigger (branch-based) and manual deployment
- Use environment-specific secrets (DATABASE_URL vs DATABASE_URL_TEST)
- Dynamic Cloud Run service names based on environment
- Update concurrency group to use environment for manual triggers
2026-03-15 22:01:17 +04:00
5c6427e3d2 fix(cd): add DB_SCHEMA env var to Cloud Run deployment 2026-03-15 21:03:10 +04:00
bb7900a614 ci: add dev branch to CI push triggers 2026-03-15 20:56:07 +04:00
0747973c8f feat(db): add rent_payment_destinations column and multi-schema support
- Add migration 0020 for rent_payment_destinations jsonb column
- Add DB_SCHEMA env var support for multi-schema deployments
- Create custom migrate.ts script with proper search_path handling
- Update drizzle.config.ts and client.ts to use DB_SCHEMA
- Add db_schema variable to Terraform with dev=test/prod=public defaults
- Update CD workflow to set DB_SCHEMA based on branch
2026-03-15 20:26:26 +04:00
f4fe4470f7 feat(infra): implement multi-environment deployment strategy
- Update CD workflow for branch-based environments (main -> Prod, dev -> Dev)
- Support Terraform workspaces for environment isolation
- Add manage_runtime_secrets flag to prevent accidental secret destruction
- Add infra management and secret setup utility scripts
- Prefix GitHub deployer identity with environment name
- Synchronize bot environment variables with latest runtime config
2026-03-15 19:11:18 +04:00
1b490fa4a5 fix(deploy): harden runtime config and migrations 2026-03-10 17:10:23 +04:00
63a2677601 fix(db): add locale repair migration hygiene guard 2026-03-09 15:54:50 +04:00
4d3c206f5f feat(ops): sync Telegram commands after deploy 2026-03-09 05:15:44 +04:00
efc221f95e docs(test): add e2e runbook and use .bun-version in CI/CD 2026-03-05 20:48:09 +04:00
Stas
4ecafcfe23 feat(infra): add docker image build and deploy pipeline (#13) 2026-03-05 04:01:08 +03:00
9d4f5d02a1 Merge remote-tracking branch 'origin/main' into codex/whe-28-terraform
# Conflicts:
#	docs/runbooks/dev-setup.md
2026-03-05 03:47:06 +04:00
d393c08263 feat(WHE-28): add terraform baseline for cloud run and scheduler 2026-03-05 03:36:54 +04:00
8086044938 feat(WHE-27): add drizzle db package and typed env config 2026-03-05 03:05:02 +04:00
Stas
6047e1c5be CI/CD: parallel quality jobs and Cloud Run deploy workflow (#3)
* ci: parallelize CI and add Cloud Run CD workflow

* ci: harden matrix task handling and CD secret checks
2026-03-05 01:13:57 +03:00
Stas
1602bbf736 ci(WHE-19): add quality gate workflow for main and PRs (#2) 2026-03-05 01:02:52 +03:00