Skip to content
PromotEdge International

Home Guides CI/CD pipeline

Guides · Guide

CI/CD pipeline: what it is and how to set one up

Without a pipeline, releasing software depends on someone remembering the steps: build on their machine, run the tests (if there is time), copy files to a server, hope. A CI/CD pipeline makes those steps automatic and identical every time, so releases become routine rather than events. This guide explains what CI and CD mean, the stages of a pipeline, and how to set one up step by step. It is part of our guide to DevOps best practices.

Reviewed by Benjamin SardarUpdated 12 Nov 20263 min read

The short answer

What is a CI/CD pipeline?

A CI/CD pipeline is the automated path code takes from a developer's commit to running in production. Continuous integration (CI) builds and tests every change as it is committed to a shared repository, so errors surface early. Continuous delivery or deployment (CD) then packages the tested build and releases it to test and production environments the same way every time. A typical pipeline runs: commit, build, test, security checks, deploy to staging, further tests, deploy to production, and monitor, with a rollback ready.

Key takeaways
  • CI builds and tests every commit; CD deploys tested builds the same way every time.
  • Typical stages: commit, build, test, security checks, staging, production, monitor.
  • Fast tests on every commit; the full regression suite before production.
  • Check dependencies on every build; software supply chain failures are A03 in the OWASP Top 10 2025.
  • Measure the pipeline with DORA: change lead time, deployment frequency, change fail rate and recovery time.

Need this done for your business? A person reads every message and replies.

Ask for a call back

CI/CD pipeline stages at a glance

Each stage, what happens and what stops the pipeline. Our own working guide, with definitions from GitHub Docs and ISTQB.

Our own working guide. Definitions: GitHub Docs (CI and CD); ISTQB glossary. Security: OWASP Top 10 2025. Measures: DORA (Jan 2026).
StageWhat happensStops the pipeline when
CommitChange pushed; pipeline startsReview not approved
BuildCode compiled or packagedBuild fails
TestFast component and integration testsAny test fails
Security checksDependency and configuration scansKnown vulnerability above your threshold
StagingDeploy to production-like environmentDeployment fails
Further testsRegression, end-to-end, smokeAny test fails
ProductionAutomatic or approved releaseApproval withheld
MonitorErrors and performance watchedAlert triggers rollback

CI builds and tests every commit automatically; CD deploys tested builds to staging and production the same way every time. Set one up by putting everything in version control, adding automated builds and tests, adding security checks, automating deployment with rollback, and monitoring. Measure it with the DORA metrics.

CI and CD, defined

GitHub's documentation describes continuous integration as a practice of committing code frequently to a shared repository, where changes are built and tested automatically, which catches errors early and cuts debugging time.

It describes continuous deployment as using automation to publish and deploy software updates, with the code built and tested before it is deployed. Continuous delivery is the same idea with a human approval before production; continuous deployment releases automatically once all checks pass.

The stages of a pipeline

Most pipelines follow the same shape:

  1. Commit: a developer pushes a change; the pipeline starts.
  2. Build: the code is compiled or packaged, the same way every time.
  3. Test: fast component and integration tests run; a failure stops the pipeline.
  4. Security checks: dependencies and configuration are scanned.
  5. Deploy to staging: the build goes to a production-like environment.
  6. Further tests: regression, end-to-end and smoke tests against staging.
  7. Deploy to production: automatically or after approval, with a rollback ready.
  8. Monitor: errors and performance are watched after release.

How to set one up

Set it up in this order:

  • Version control: code, configuration and deployment scripts in one repository, with branch protection and reviews.
  • A pipeline tool: most code hosts and cloud platforms include one; choose what your team can maintain.
  • Automated build: one command builds the application from a clean checkout.
  • Automated tests: start with fast tests on every commit; add the regression suite before production. ISTQB defines regression testing as testing after modification.
  • Secrets: stored in the tool's secret store, never in the repository.
  • Environments: staging that matches production as closely as practical.
  • Deployment and rollback: scripted deployment, and a tested way to return to the previous version.
  • Monitoring: alerts on errors after each release.

Security in the pipeline

A pipeline is also a route into production, so protect it. Scan dependencies on every build for known vulnerabilities, limit who can change the pipeline and approve production releases, and keep secrets out of logs. The OWASP Top 10 2025 lists software supply chain failures as A03, a risk the pipeline both creates and can check.

Measuring the pipeline

The DORA metrics (guide last updated January 2026) fit a pipeline closely: change lead time (commit to production), deployment frequency, change fail rate, failed deployment recovery time and deployment rework rate. A good pipeline shortens lead time and recovery time while keeping the fail rate down.

Common pipeline mistakes

The faults we see most:

  • Slow pipelines that developers bypass. Keep commit checks to minutes.
  • Flaky tests that fail at random, so failures get ignored.
  • Staging unlike production, so problems appear only after release.
  • No rollback, so every failed release becomes an emergency fix.
  • Secrets in the repository or printed in logs.

Conclusion

A CI/CD pipeline builds and tests every commit (continuous integration) and deploys tested builds the same way every time (continuous delivery or deployment). Set one up from version control, automated builds and tests, security checks, staging, scripted deployment with rollback and monitoring, and measure it with the DORA metrics.

PromotEdge International is an international strategy, technology, marketing and design company, and our delivery team is in India. Our DevOps team sets up CI/CD pipelines with tests, security checks and rollback, in your own cloud accounts, on the tools your team uses.

Facts we rely on: see our company facts for what we state about ourselves and where each fact comes from.

Common questions

  • The automated path code takes from a developer's commit to production. Continuous integration builds and tests every change as it is committed; continuous delivery or deployment then releases tested builds to staging and production the same way every time, with monitoring and a rollback ready.

  • CI, continuous integration, builds and tests every commit to a shared repository so errors surface early. CD, continuous delivery or deployment, takes tested builds and releases them automatically: delivery keeps a human approval before production, deployment releases once all checks pass.

  • Commonly: commit, build, test, security checks, deploy to staging, further tests such as regression and smoke tests, deploy to production, and monitor. Any failure stops the pipeline before the change goes further.

  • Put code, configuration and scripts in version control; choose a pipeline tool your team can maintain; automate the build and fast tests on every commit; add security scans; set up staging; script deployment with a tested rollback; store secrets securely; and add monitoring and alerts.

  • With the DORA metrics: change lead time from commit to production, deployment frequency, change fail rate, failed deployment recovery time and deployment rework rate. A good pipeline shortens lead and recovery times while keeping the fail rate low.

  • Yes. Our DevOps team sets up CI/CD pipelines with automated tests, security checks, staging and rollback, in your own cloud accounts and on the tools your team uses. We are not a partner of any cloud provider, and we publish no rate card.

Sources

Each figure in this guide comes from one of these, read on the date shown.

  1. GitHub Docs: continuous integration, read 12 Nov 2026
  2. GitHub Docs: continuous deployment, read 12 Nov 2026
  3. DORA: metrics guide, last updated 5 Jan 2026, read 12 Nov 2026
  4. ISTQB glossary: regression testing, read 12 Nov 2026
  5. OWASP: Top 10 2025, read 12 Nov 2026

Brands we have worked with

  • Fine Organics
  • Weichai
  • Novozymes
  • Dozco
  • SANY
  • Prezent
  • Honest AI
  • SCENNE
  • Sara International
  • Vega MPS
  • Desi Machine Pvt. Ltd.

Work delivered from India. Results are shared one to one, under NDA.

See all clients

Talk to us

Tell us what you need

We use these details only to reply to you.

Phone or WhatsApp (optional)
Who is it for? (optional)

Rather talk now?

How we work

  1. 01

    Tell us the goal

    A rough note through the form on what you sell and what needs to change.

  2. 02

    We study your market

    How people find you today, where inquiries get lost, then a call in your working day.

  3. 03

    A written plan

    The work, who does it and how it is measured. Nothing starts until you approve it.

  4. 04

    The work starts

    Our team in India does the work, with calls set in your working hours.

  5. 05

    Reports and visits

    Every number we report shows its source and date range, and we travel to our clients every 3 to 4 months.

Chat with us