Sabbir#19
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughAdds CI/CD pipelines and a composite action for env setup, introduces zero-downtime deployment and NGINX/HTTPS setup scripts, updates server port and active-coder broadcasting, configures docker-compose profiles, adjusts release workflow to use tag-based changelogs, updates package metadata, and cleans up ignore files and deprecated workflows. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant GH as GitHub Actions
participant Act as setup-and-load-env (composite)
participant DH as Docker Hub
participant VPS as VPS Server
Dev->>GH: Push to main / trigger CD
GH->>Act: Run composite action (inputs from secrets)
Act->>Act: Generate .env, write deploy_key.pem, export envs
GH->>DH: docker login/build/push (compose --profile prod)
GH-->>Dev: Build & push logs
GH->>VPS: SSH + SCP (.env, compose, scripts)
GH->>VPS: Run scripts/deploy.sh --version PACKAGE_VERSION
VPS->>VPS: Start new container, health-check, switch
VPS-->>GH: Status/health results
GH-->>Dev: Deployment outcome
sequenceDiagram
autonumber
participant Depl as deploy.sh
participant Docker as Docker Engine
participant App as New Container
participant Old as Current Container
participant HC as Health Endpoint
Depl->>Docker: Identify Old container/version
Depl->>Docker: Pull/use image for target version
Depl->>Old: Rename to backup (non-disruptive)
Depl->>Docker: Launch App (compose with new version)
loop Health retries
App->>HC: HTTP GET /health (or /status)
HC-->>App: 200 ok / fail
end
alt Success
Depl->>Docker: Remove Old backup
Depl->>Depl: Record version (history)
else Failure
Depl->>Docker: Stop/Remove App
Depl->>Docker: Restore Old backup
Depl->>Depl: Log rollback result
end
sequenceDiagram
autonumber
participant Action as Composite Action
participant FS as Workspace FS
participant GEnv as GITHUB_ENV
Action->>FS: Write .env with inputs
Action->>FS: Write deploy_key.pem (chmod 600)
Action->>FS: Append VPS_SSH_PRIVATE_KEY_FILE to .env
Action->>GEnv: Export selected variables
Action->>FS: Verify .env presence/size
Action-->>Action: Print summary (package, version, key path)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (18)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Changes
Documentation
Chores