Use it when configuring, checking or troubleshooting Deployment in CI/CD.
Deployment · CI/CD
Deployment applies a selected release or artifact to a target environment through a defined rollout mechanism and must be verified against actual target state and workload behavior.
1. Deployment pushes artefacts to environments.
2. Automated and repeatable.
3. Health checks after deploy.
4. Progressive strategies.
5. Record versions per environment.
artefact → deploy → health check → done/rollback
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
git rev-parse HEADPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
Healthy evidence: Target environment, artifact digest, rollout strategy, deployment result and independent health/acceptance checks are correlated.
Step 2 Known-good, broken and when it is fixed Verify boundary
Verification for CI/CD → Deployment must discriminate known-good from broken/suspicious state. With git rev-parse HEAD, known-good is: the revision matches the reviewed/released commit intended for the deployment. Broken/suspicious is: the executing workspace points to a different commit than the approved release. Read back the same target after the minimal approved change, then compare artifact/deployment revision on targets and run service-level post-change verification.
Step 3 Failure modes and next checks Narrow the fault
Suspicious evidence: The pipeline reports deploy success when an API accepted the request, while asynchronous rollout later fails or only part of the target fleet updated.
Step 4 Observation-driven troubleshooting tree Narrow the fault
Troubleshoot CI/CD → Deployment from one exact failing target, revision/input and timestamp. Capture git rev-parse HEAD before mutation, then branch by the first divergent observation: artifact or target identity is ambiguous, stop; pre-change validation fails, do not mutate; only some targets apply the release, build a mixed-state map before retry; service starts but acceptance fails, inspect runtime logs/dependencies rather than trusting deploy success; rollback is chosen, verify data/schema reversibility first. Typical failure signatures include wrong artifact, wrong target, partial deployment, stale configuration, failed migration, service startup loop, controller success with old target revision, or successful health probe while the user-facing operation still fails.
Step 5 Failure signatures, dependencies and operational guardrails Narrow the fault
Failure-signature and guardrail reference for CI/CD → Deployment: Wrong artifact, wrong target, partial deployment, stale configuration, failed migration, service startup loop, controller success with old target revision, or successful health probe while the user-facing operation still fails. Operational guardrail: Source commit is only an intent anchor; verify immutable artifact, every target's applied revision, service state and original workload on the same rollout scope. Dependencies that can mimic the same symptom are artifact storage, target connectivity, service manager/orchestrator, filesystem permissions, database/schema compatibility, secrets and runtime dependencies.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Deployment command success ≠ deployment healthy; scheduling, rollout completion, readiness, configuration, dependencies and user-facing acceptance remain separate.
- Pipeline status is execution evidence, not independent proof of target service health or business outcome.
- The exact revision, evaluated pipeline definition, effective inputs and execution worker are part of the evidence context.
- Preserve artifact identity and target read-back so validation, promotion and runtime acceptance cannot be silently conflated.
- Deployment logs per environment — history
- Post-deploy health checks — verification
- Deployment strategy (rolling/blue-green/canary) — safety
ReferenceWhat it is1 section · depth on demand
Common mistakes
- Deploying from developer machines.
ReferenceHow it works1 section · depth on demand
How it works
CI/CD → Deployment owns release artifact, target selection, deployment plan, configuration and migration steps, service lifecycle, target read-back and acceptance criteria. Execution mechanics: Deployment should bind one immutable artifact and configuration set to an explicit target scope, execute ordered steps with stop conditions, read the resulting version/configuration from each target and only then perform acceptance and rollback decisions. Keep adjacent dependencies separate: artifact storage, target connectivity, service manager/orchestrator, filesystem permissions, database/schema compatibility, secrets and runtime dependencies. The mapped read surface git rev-parse HEAD exposes exact Git commit identifier of the source tree used for automation/deployment.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Deployment command success ≠ deployment healthy; scheduling, rollout completion, readiness, configuration, dependencies and user-facing acceptance remain separate.
In depth
The deployment stage of CI/CD takes a tested artifact or configuration and applies it to an environment, then verifies the result. Deployment should be repeatable, use the same artifact everywhere, and be reversible.
| Strategy | Description |
|---|---|
| Rolling | Replace instances in batches |
| Blue-green | Switch traffic between two full environments |
| Canary | Small share first, then expand |
| Recreate | Stop old, start new (downtime) |
# GitHub Actions
jobs:
deploy:
environment: production
steps:
- run: ansible-playbook site.yml -l prod --diff
Record which version is deployed where so rollback knows the target.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in CI/CD > Deployment. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Deployment CI/CD proof-boundary map
Fast trigger/execution/artifact/promotion/target-proof boundaries for Deployment.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Trigger / evaluation | Exact commit and evaluated pipeline/inputs are known | Wrong ref, inherited rule or hidden variable changes the run |
| Execution / validation | Expected worker, jobs and tests execute with traceable context | Skips, retries, stale cache or worker drift hides the failure |
| Artifact / promotion | Immutable artifact is linked to release, approval and environment | Rebuild/mutable tag breaks provenance or approval scope |
| Target proof | Rollout plus independent readiness/acceptance confirms the intended release | Pipeline/API success is treated as runtime health |