feat(ci): update ci/cd pipeline and dockerfile#6
Open
hoangsonww wants to merge 3 commits into
Open
Conversation
✅ Deploy Preview for customizable-ai-chatbot ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades the Docker setup to a multi-stage Node 18/pnpm build and overhauls the GitHub Actions pipeline into distinct format, test, build, docker-publish, and deploy jobs using encrypted scripts.
- Switches Dockerfile to a two-stage build with pnpm and Node 18 for smaller, faster images
- Replaces a monolithic CI job with separate “Format & Lint”, “Test”, “Build”, “Docker”, and “Deploy” steps
- Standardizes on main/master branches and centralizes the Node version via a workflow-level environment variable
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| Dockerfile | Migrated to multi-stage build: installs pnpm, builds in a builder stage, then sets up a slim runtime |
| .github/workflows/ci.yml | Introduced categorical jobs (formatting, testing, build, docker, deploy); decodes scripts from secrets |
Files not reviewed (1)
- .idea/google-java-format.xml: Language not supported
Comments suppressed due to low confidence (1)
Dockerfile:21
- [nitpick] This production install may be redundant since you're copying node_modules from the builder stage. Consider removing the pnpm install in the runner or rely solely on the copied modules to reduce image build time and size.
RUN pnpm install --prod --frozen-lockfile
This was
linked to
issues
Sep 9, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.