Mark As Completed Discussion

Workflow of CI and CD pipeline

CI/CD is a path to deliver innovative change from development to delivery. It automates software delivery services and allows to release within a short time frame.

Phase 1: Continuous integration elements as follows:

Build

For potential deployment, the source code needs to be built. Available integration tools help this phase to automate the pipeline. As considering language dependency, languages being used need to be call and execute. An example here is, calling Maven is needed to structure JAVA distribution. The building element also may be part of this step. Next example. If we need to create a Docker image of JAVA, Docker composes to be called to build it. Finally, build-oriented tests are executed and run in the build phase, where unit tests and scanning are carried out.

Infrastructure elements

In today's day, the industry is tangled with infrastructure awareness around CI and CD approaches. The right or wrong choice of structure provisioning is the gate to improve the CI & CD pipeline. If we consider artifact elements through improvement, infrastructure provisioning is used for the new environment, including Terraform script or cloud provider scripts. For example, If we notify changes.

Testing element

Major aspect while executing services is to build confidence. Test assures you of the effectiveness of service. CI and CD pipeline are natural traits that work as quality gates. Difficulties having application in required fields such as integration tests, soak tests, load tests, and regression tests. Some of the modern trends are there, including Chaos Engineering, which also improves the infrastructure level.

Release element

Release element is concerned about the actual deployment practice, which may have styles of deployment such as rolling, blue-green, and canary fashion. The release phase takes care of the arrangement CI&CD pipeline.

Validation element

Validation is a decision point in the CI and CD pipeline under which progress of the right way is validated. It continues to promote and monitor the deployment. The new era of CI&CD enhances the decisions from the multiple markers with observing and monitoring tools. Decides the progression of rollback occurs.

Let's take a short look at some deployment strategies:

  1. Rolling deployment: It’s a release strategy which updated in sequence. Old is replaced by new updated version until all nodes in rows are replaced.
  2. Blue-green deployment: This release strategy is intended in an application for safety purposes. With two parallel versions of production running, the new version (blue) is replaced by a stable version (green) through a load balancer that ensures the function of a stable version until it is deemed safe to decommission. Thus, blue-green deployment makes easier rollback.

  3. Canary deployment: The incremental release is rolled out, ultimately replacing the stable version. For example, If the front page might swap 10% of nodes, and upon success, it improves to 50% and then finally 100% swapped.

Workflow of a CI and CD pipeline

Let us think...