feat(ci,docker): add workflow, Dockerfile, and docker-compose for DevOps automation #188
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.
This PR introduces a Dockerized setup for the Frontend along with a GitHub Actions workflow (
.github/workflows/frontend.yaml) to streamline builds, testing, and deployment.It also prepares the project for SonarCloud quality checks and DockerHub publishing, so the team can adopt a full CI/CD workflow with code quality gates and automated container image pushes.
🔨 Changes Introduced
Dockerfile for the Frontend
npm run dev)..dockerignore created to reduce image size (ignores
node_modules,.next, logs, etc.).docker-compose.yaml for local development using the
devstage.GitHub Actions Workflow
⚙️ Required GitHub Secrets & Variables
To enable the SonarCloud scan and DockerHub push, the following must be configured in the repository settings:
SonarCloud
secrets.SONAR_TOKEN→ Personal access token generated from SonarCloud.DockerHub
vars.DOCKERHUB_USERNAME→ Your DockerHub username.secrets.DOCKERHUB_TOKEN→ DockerHub access token (recommended) or account password.📖 References
🚀 Next Steps
SONAR_TOKENis set.✅ Benefits
docker-compose up).⚡ This lays the foundation for automated CI/CD and code quality checks, while keeping the setup flexible for the team’s deployment needs.