Pipeline Overview
| Stage | Description | Commands |
|---|---|---|
| Unit Testing | Validate application logic | npm installnpm test |
| Code Coverage | Generate coverage metrics | npm installnpm run coverage |
| Docker Build & Push | Containerize and publish image | docker build -t your-image:latest .docker push your-image:latest |
Ensure your CI configuration archives test reports and coverage artifacts for visibility.
1. Completed CI Jobs
Here are the commands executed in separate CI stages:2. Kubernetes Deployment (Development)
Deploy to the development cluster using Kubernetes manifests:- Prepare manifests:
deploy/deployment.yamldeploy/ingress.yaml
- Apply them with
kubectl: - Verify the ingress and perform a quick integration test:
Always verify that the ingress controller and TLS certificates are correctly configured in your dev environment.
3. Kubernetes Deployment (Production) with Manual Approval
Before pushing changes to production, insert a manual approval step in your CI/CD workflow. Upon approval, deploy using the same manifests against the production context:Production deployments are irreversible. Double-check your manifests, image tags, and environment-specific configurations before approving.