Continuous Deployment (CD)
debt(d7/e7/b7/t5)
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.
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.
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.
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.
Also Known As
TL;DR
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
Why It Matters
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
# 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
# .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 }}"}'