← Home ← Codex ← DEBT ← Engine
Browse by Category
+ added · ✎ updated 7d
← Back to glossary

Continuous Deployment (CD)

DevOps PHP 5.0+ Intermediate
debt(d7/e7/b7/t5)
d7 Detectability Operational debt — how invisible misuse is to your safety net

Closest to 'only careful code review or runtime testing' (d7). The detection_hints show automated=no, meaning tools like GitHub Actions, ArgoCD, Spinnaker, or Capistrano can implement CD but don't automatically detect its absence. Code patterns like 'manual deployment steps' or 'long-lived feature branches' are only visible through careful review of workflows and release processes, not automated scanning.

e7 Effort Remediation debt — work required to fix once spotted

Closest to 'cross-cutting refactor across the codebase' (e7). The quick_fix describes automating deployment on every merge with feature flags — this requires CI/CD pipeline changes, feature flag infrastructure, automated rollback mechanisms, and sufficient test coverage. This touches deployment scripts, application code, infrastructure config, and organizational process — a significant cross-cutting effort.

b7 Burden Structural debt — long-term weight of choosing wrong

Closest to 'strong gravitational pull' (b7). CD applies to web and api contexts and fundamentally shapes how every feature is developed, tested, and released. Once adopted, every code change flows through this process. The common_mistakes highlight that CD requires feature flags, automated rollback, and comprehensive test coverage — these become load-bearing infrastructure that affects all future development decisions.

t5 Trap Cognitive debt — how counter-intuitive correct behaviour is

Closest to 'notable trap' (t5). The misconception explicitly states that developers confuse continuous deployment with continuous delivery — believing they're the same when delivery involves human approval gates and deployment does not. This is a documented gotcha that most devs eventually learn, but the initial confusion can lead to implementing the wrong process or expecting manual gates where none exist.

About DEBT scoring →

Also Known As

CD continuous deploy auto deploy

TL;DR

Automatically deploying every commit that passes CI to production, eliminating manual release steps.

Explanation

Continuous Deployment extends CI by automatically promoting successful builds all the way to production without manual intervention. Every commit that passes the full test and quality pipeline is deployed. This requires high test coverage and confidence, feature flags for incomplete work, robust rollback mechanisms, and comprehensive monitoring. Continuous Delivery (also CD) is the less extreme version: every commit is deployable, but deployment is a manual step. Both practices reduce deployment risk by making releases small and frequent rather than large and infrequent.

Diagram

flowchart LR
    DEV[Developer<br/>pushes code] --> CI[CI Pipeline<br/>Tests pass]
    CI --> STAGE[Deploy to<br/>Staging auto]
    STAGE --> SMOKE[Smoke Tests]
    SMOKE -->|Pass| PROD[Deploy to<br/>Production auto]
    SMOKE -->|Fail| ALERT[Alert + Rollback]
    PROD --> MON[Monitor<br/>DORA metrics]
style PROD fill:#238636,color:#fff
style ALERT fill:#f85149,color:#fff
style MON fill:#1f6feb,color:#fff

Common Misconception

✗ Continuous deployment and continuous delivery are the same thing. Continuous delivery means every commit could be deployed — a human approves each release. Continuous deployment means every commit that passes tests is deployed automatically without human intervention.

Why It Matters

Continuous deployment automatically releases every passing build to production — smaller, more frequent releases are safer than large batches because each change is isolated and easy to roll back.

Common Mistakes

  • Deploying without feature flags — CD requires the ability to ship code that's not yet active.
  • No automated rollback on deploy failure — manual rollback under pressure is slow and error-prone.
  • Treating CD as just 'push button deploy' without the test coverage to make it safe.
  • Not deploying on Fridays is a symptom of painful deploys, not a policy — fix the deploy process instead.

Code Examples

✗ Vulnerable
# CI pipeline without automated rollback:
steps:
  - name: deploy
    run: rsync -avz ./dist/ user@prod:/var/www/
    # No health check after deploy
    # No automatic rollback if health check fails
    # Next step runs regardless of deploy success
✓ Fixed
# .github/workflows/deploy.yml — deploy on every main branch push
name: Deploy
on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Run tests
        run: composer test

      - name: Deploy to production
        run: |
          ssh deploy@prod 'cd /var/www/app && git pull && composer install --no-dev && php artisan migrate --force && php artisan optimize'

      - name: Health check
        run: curl --fail https://yourapp.com/health || exit 1

      - name: Notify on failure
        if: failure()
        uses: slackapi/slack-github-action@v1
        with:
          payload: '{"text": "Deploy failed on ${{ github.sha }}"}'

Added 15 Mar 2026
Edited 22 Mar 2026
Views 190
Rate this term
No ratings yet
🤖 AI Guestbook educational data only
| |
Last 30 days
1 ping S 0 pings S 0 pings M 1 ping T 0 pings W 1 ping T 0 pings F 0 pings S 0 pings S 0 pings M 1 ping T 0 pings W 0 pings T 1 ping F 0 pings S 1 ping S 0 pings M 0 pings T 0 pings W 0 pings T 0 pings F 0 pings S 0 pings S 0 pings M 1 ping T 0 pings W 0 pings T 1 ping F 0 pings S 0 pings S
No pings yet today
No pings yesterday
Scrapy 23 PetalBot 19 Amazonbot 17 Perplexity 15 Ahrefs 11 SEMrush 10 Google 7 Bing 7 Unknown AI 2 Applebot 2 ShapBot 2 ChatGPT 1 Qwen 1 Brave Search 1 Twitter/X 1 Baidu 1
crawler 119 crawler_json 1
🧱 FUNDAMENTALS — new to this? Start with the ground floor.
Pipeline devops A pipeline is an automated sequence of steps that takes your code from source to production—building, testing, and deploying it without manual intervention.

Pipelines catch bugs before they reach users and make releases predictable. As projects grow, manual deployment becomes error-prone—pipelines scale with your team and enforce consistency.

💡 If it's not in the pipeline, it's not guaranteed to happen—automate every step you'd otherwise forget.

Ask Codex about Pipeline →
⚡ DEV INTEL Tools & Severity
🔵 Info ⚙ Fix effort: High
⚡ Quick Fix
Automate deployment to production on every merge to main that passes CI — use feature flags to control what users see, not deployment timing
📦 Applies To
PHP 5.0+ web api
🔗 Prerequisites
🔍 Detection Hints
Manual deployment steps; release scheduled weekly or monthly; long-lived feature branches
Auto-detectable: ✗ No github-actions argocd spinnaker capistrano
🤖 AI Agent
Confidence: Low False Positives: Medium ✗ Manual fix Fix: High Context: File Tests: Update


✓ schema.org compliant