ci: add GitLab CI/CD pipeline with prod, staging, and MR preview environments

- main → production, staging branch → staging, MR → ephemeral preview
- All env config (URLs, Appwrite credentials) injected from GitLab CI/CD
  variables at build time — no .env files committed
- Preview environments auto-deploy per MR with URL {mr-iid}.{BASE_DOMAIN}
  and are torn down when the MR is closed
- Update .gitignore to exclude .env.production/.staging/.preview

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Kushal Gaywala
2026-02-28 13:37:50 +01:00
parent 37bc35f53f
commit 8009c11581
2 changed files with 176 additions and 0 deletions

2
.gitignore vendored
View File

@@ -5,6 +5,8 @@ dist-ssr
.env
.env.local
.env.production
.env.staging
.env.preview
.DS_Store
*.pem
coverage