CI/ CD pipeline is the continuous integration and continuous delivery/deployment of tested code to production environment. CI/CD ensures that the time to deliver code deliverables from development to production deployment is shorter.
There are below phases of CI/CD.
- Version Control – Provides a tool to maintain code, maintaining code history and branching code.
- CI – Continuous integration is the process that takes care of compiling, testing(unit + integration test) and build code image.
- CD – Continuous delivery is the process where the successful build from CI is pushed to QA and UAT environment for testing. Once the signal is green, the gate opens for production deployment.
- CD – Continuous deployment is taking code to production and is the next step to continuous delivery.
Below state diagram explains how code flows through CI CD pipeline in modern applications.