Skip to content

Commit 0944379

Browse files
authored
Merge pull request #38 from rishabh3562/feat/ci-cd-pipeline-issue-29
feat(ci): implement CI/CD pipeline with linting and multi-environment deployment ( fixes #29)
2 parents 59c5aab + 3854678 commit 0944379

11 files changed

Lines changed: 996 additions & 35 deletions

File tree

.env.development

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Development Environment Configuration
2+
# Copy this file to .env.local for local development
3+
4+
# Application Environment
5+
NODE_ENV=development
6+
7+
# Gemini AI API Configuration
8+
# Get your API key from: https://makersuite.google.com/app/apikey
9+
NEXT_PUBLIC_GEMINI_API_KEY=your_gemini_api_key_here
10+
11+
# MongoDB Database Configuration
12+
# Use local MongoDB for development
13+
MONGODB_URI=mongodb://localhost:27017/toolbox_dev
14+
15+
# Development specific settings
16+
NEXT_PUBLIC_API_URL=http://localhost:3000
17+
NEXT_PUBLIC_ENV=development
18+
19+
# Debug mode (optional)
20+
DEBUG=true

.env.production

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Production Environment Configuration
2+
# DO NOT commit actual secrets - use GitHub Secrets instead
3+
# This is a TEMPLATE file - actual values are injected by CI/CD
4+
5+
# Application Environment
6+
NODE_ENV=production
7+
8+
# Gemini AI API Configuration
9+
# Set in GitHub Secrets: NEXT_PUBLIC_GEMINI_API_KEY
10+
# NEXT_PUBLIC_GEMINI_API_KEY=
11+
12+
# MongoDB Database Configuration
13+
# Set in GitHub Secrets: MONGODB_URI_PRODUCTION
14+
# MONGODB_URI=
15+
16+
# Production specific settings
17+
NEXT_PUBLIC_API_URL=https://your-domain.com
18+
NEXT_PUBLIC_ENV=production
19+
20+
# Monitoring (optional)
21+
# NEXT_PUBLIC_SENTRY_DSN=
22+
# NEXT_PUBLIC_ANALYTICS_ID=

.env.staging

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Staging Environment Configuration
2+
# DO NOT commit actual secrets - use GitHub Secrets instead
3+
# This is a TEMPLATE file - actual values are injected by CI/CD
4+
5+
# Application Environment
6+
NODE_ENV=production
7+
8+
# Gemini AI API Configuration
9+
# Set in GitHub Secrets: NEXT_PUBLIC_GEMINI_API_KEY
10+
# NEXT_PUBLIC_GEMINI_API_KEY=
11+
12+
# MongoDB Database Configuration
13+
# Set in GitHub Secrets: MONGODB_URI_STAGING
14+
# MONGODB_URI=
15+
16+
# Staging specific settings
17+
NEXT_PUBLIC_API_URL=https://staging.your-domain.com
18+
NEXT_PUBLIC_ENV=staging
19+
20+
# Monitoring (optional)
21+
# NEXT_PUBLIC_SENTRY_DSN=

0 commit comments

Comments
 (0)