Skip to content

Commit bd7b4f1

Browse files
authored
πŸš€ Release: beta β†’ master (#78)
* Refactor code structure for improved readability and maintainability * feat(ci): add guard against forbidden docker exec curl usage and improve health checks * fix(ci): enhance guard against forbidden docker exec curl usage in workflows * fix(ci): refine guard against forbidden docker exec curl usage in workflows * feat: enhance CI/CD workflow with production simulation and infra contract checks - Added a new job `production-simulation` to validate the image under production-like conditions. - Implemented infra contract naming guard to enforce canonical naming conventions for network and Redis URLs. - Updated existing checks in the CI workflow to ensure no forbidden patterns are present in deploy paths. - Enhanced `deploy.sh` script to track phase-aware deploy results for better rollback decisions. - Modified readiness checks in `vps-readiness-check.sh` to ensure nginx and Redis are reachable before deployment. - Updated documentation in `infra-contract.md` to reflect new naming conventions and requirements. * fix: enforce canonical redis URL in env.example + scope guard to production paths only Made-with: Cursor * fix(ci): docker-exec curl guard ignores path-prefixed lines and self-doc Made-with: Cursor * fix(ci): remove api-ci-test container before docker rmi in bootstrap step Made-with: Cursor
1 parent a53a20f commit bd7b4f1

58 files changed

Lines changed: 2445 additions & 8171 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ž.env.exampleβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ SUPABASE_SERVICE_ROLE_KEY=
2626
SUPABASE_JWT_SECRET=
2727

2828
# --- Redis ---
29-
REDIS_URL=redis://localhost:6379
29+
# Production/Docker: Redis runs as 'redis' container on api_network (canonical contract).
30+
# Local development with Redis on the host: override REDIS_URL in your local .env (see docs/env-contract.md).
31+
REDIS_URL=redis://redis:6379
3032

3133
# --- Security ---
3234
METRICS_SCRAPE_TOKEN=

β€Ž.github/pull_request_template.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Closes #
5252
## Final Checklist
5353

5454
- [ ] PR title follows conventional commit format (`type(scope): description`)
55-
- [ ] Branch name follows convention (`feat/*`, `fix/*`, `infra/*`, etc.)
55+
- [ ] Branch name follows convention (`feat/*`, `fix/*`, `docs/*`, etc.)
5656
- [ ] No debug logs, commented-out code, or `TODO` / `FIXME` left in diff
5757
- [ ] No secrets or credentials committed
5858
- [ ] Relevant documentation updated (if applicable)

β€Ž.github/workflows/deploy.ymlβ€Ž

Lines changed: 213 additions & 237 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
Β (0)