-
Notifications
You must be signed in to change notification settings - Fork 74
feat: implement ci/cd pipeline with docker #258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
26287b7
feat: implement ci/cd pipeline with docker
codebestia 893d93a
chore: update docker config for non root user
codebestia de39573
chore: add .env.example files
codebestia 204747a
chore: effect review changes
codebestia 1c26ac1
chore: implement review changes
codebestia b1c2adf
chore: implement ai review
codebestia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # ---------------------------- | ||
| # Backend (FastAPI) - runtime | ||
| # ---------------------------- | ||
| # Used by backend OAuth + GitHub sync on startup (GitHub OAuth endpoints). | ||
| GITHUB_CLIENT_ID=your_client_id | ||
| GITHUB_CLIENT_SECRET=your_client_secret | ||
|
|
||
| # Used to sign/verify JWT access tokens issued by the API. | ||
| # WARNING: Replace this with a long, random secret (>= 32 chars / 256 bits). | ||
| # Example only (DO NOT use in production). | ||
| JWT_SECRET=unsafe-example-jwt-secret-please-change | ||
|
|
||
| # Database URL for SQLAlchemy async engine. | ||
| # Examples: | ||
| # Postgres: | ||
| # postgresql+asyncpg://USER:PASSWORD@HOST:5432/DB | ||
| # SQLite: | ||
| # sqlite+aiosqlite:///./local.db | ||
| # | ||
| # Used by: | ||
| # - `docker-compose.yml` via `DATABASE_URL` | ||
| # - `deploy.yml` database migration job (`alembic upgrade head`) | ||
| DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/solfoundry | ||
|
|
||
| # Redis connection string. | ||
| # Used by: | ||
| # - `backend/app/services/websocket_manager.py` (Redis pub/sub for websockets) | ||
| REDIS_URL=redis://localhost:6379/0 | ||
|
|
||
| # ---------------------------- | ||
| # Frontend (Vite) - build-time hints | ||
| # ---------------------------- | ||
| # Used by some pages to construct absolute API URLs. | ||
| # Many API calls use relative paths (`/api/...`), so this may be optional for some deployments. | ||
| VITE_API_URL=http://localhost:8000 | ||
| VITE_WS_URL=ws://localhost:8000 | ||
|
|
||
| # ---------------------------- | ||
| # Docker Compose (local) - DB | ||
| # ---------------------------- | ||
| POSTGRES_USER=postgres | ||
| POSTGRES_PASSWORD=postgres | ||
| POSTGRES_DB=solfoundry | ||
|
|
||
| # ---------------------------- | ||
| # CI/CD (GitHub Actions) - deployment secrets | ||
| # ---------------------------- | ||
| # These values must be set as GitHub repository secrets. | ||
|
|
||
| # deploy.yml -> Vercel | ||
| VERCEL_TOKEN=your_vercel_token | ||
| VERCEL_ORG_ID=your_vercel_org_id | ||
| VERCEL_PROJECT_ID=your_vercel_project_id | ||
|
|
||
| # deploy.yml -> DigitalOcean Kubernetes | ||
| DIGITALOCEAN_ACCESS_TOKEN=your_digitalocean_access_token | ||
| DIGITALOCEAN_CLUSTER_NAME=your_digitalocean_cluster_name | ||
|
|
||
| # deploy.yml -> frontend build injection | ||
| # Used by the `deploy.yml` frontend build step (currently wired into the build environment). | ||
| API_URL=https://api.solfoundry.org | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The deployment secret guidance is not environment-safe.
Line 48 tells maintainers to configure these as repository-level secrets, and Line 61 even defaults
API_URLto the production API. For a pipeline that now supports both staging and production, that guidance makes it easy for preview/staging deployments to build against production endpoints or infrastructure instead of isolated environment-specific values.🧰 Tools
🪛 dotenv-linter (4.0.0)
[warning] 52-52: [UnorderedKey] The VERCEL_ORG_ID key should go before the VERCEL_TOKEN key
(UnorderedKey)
[warning] 53-53: [UnorderedKey] The VERCEL_PROJECT_ID key should go before the VERCEL_TOKEN key
(UnorderedKey)
[warning] 61-61: [EndingBlankLine] No blank line at the end of the file
(EndingBlankLine)
🤖 Prompt for AI Agents