Introduction to CI/CD (original) (raw)

Last Updated : 18 May, 2026

CI/CD (Continuous Integration and Continuous Delivery/Deployment) is a modern software development practice that automates the process of building, testing, and releasing applications. It plays a key role in DevOps by streamlining collaboration between development and operations teams.

CI/CD Before Adoption

Before the adoption of CI/CD, software development and delivery were slow, manual, and prone to errors. Processes were less automated, making releases time-consuming and risky.

before_ci_cd

Before CI/CD

CI/CD After Adoption

With CI/CD, the development process becomes automated, faster, and more reliable.

after_ci_cd

After CI/CD

Three Pillars of CI/CD

To effectively implement CI/CD, it is important to understand the differences between its three core concepts: Continuous Integration, Continuous Delivery, and Continuous Deployment.

1. Continuous Integration (CI)

Continuous Integration focuses on integrating code changes frequently to avoid conflicts and ensure code stability.

**Note: Both Continuous Delivery and Continuous Deployment are commonly abbreviated as “CD,” but they differ in release automation. Continuous Delivery requires manual approval before production release, while Continuous Deployment automates the release process completely.

2. Continuous Delivery (CD)

Continuous Delivery ensures that the application is always ready for release, with minimal manual effort.

3. Continuous Deployment (CD)

Continuous Deployment takes automation a step further by removing manual intervention in releases.

CI Workflow

The CI workflow represents the automated process that starts when developers commit code and ends with build status.

rt

CI workflow

CI/CD Workflow

This workflow shows how Continuous Integration combined with Continuous Delivery/Deployment enables faster, safer, and more reliable software releases.

tgb

CI/CD Workflow

Various tools are used to implement CI/CD pipelines effectively.

CI/CD Pipeline

A CI/CD pipeline is an automated workflow that enables teams to build, test, and deploy code efficiently and reliably.

In simple terms, it is a series of automated steps that help deliver software faster with fewer errors.

cicd12

Components of a CI/CD Pipeline

These components define how code moves from development to production.

ci_cd_pipeline_components

CI/CD Pipeline Components

1. Commit Change

This is the starting point where developers push code to a repository.

2. Build Trigger

The system automatically detects changes and starts the pipeline.

3. Build

The application is compiled and prepared for execution.

4. Build Outcome Notification

The system provides feedback about the build status.

5. Run Execution

Automated tests verify the quality and correctness of the code.

6. Test Outcome Notification

The system reports the results of test execution.

7. Deliver Build to Staging

The application is deployed to a staging environment for validation.

8. Deploy to Production

The final stage where the application is released to users.

Best Practices for a Healthy Pipeline

Following best practices ensures efficient and reliable CI/CD pipelines.