Patch Deployments
Deploy a specific commit to a pipeline, temporarily pausing normal deployments until the patch is released.
Use a patch deployment when you need to deploy a specific commit -- such as a hotfix or cherry-pick -- without waiting for it to flow through the normal push-based deployment process. This is especially useful when you need to deploy a commit that isn't the latest on the tracked branch.
How Patch Mode Works
When you initiate a patch deployment:
- The specified commit is deployed through the pipeline's stages, just like a normal deployment.
- The pipeline enters patch mode. While in patch mode, incoming pushes to the tracked branch are ignored -- no new deployments are triggered.
- Patch mode stays active until you explicitly release the patch.
- When you release the patch, the pipeline resumes normal operation. The next push to the tracked branch triggers a deployment as usual.
Normal Operation Patch Mode Released
│ │ │
pushes ──► deploy pushes ──► ignored pushes ──► deploy
patch commit ──► deploy
Starting a Patch Deployment
- Navigate to the pipeline in the dashboard.
- Click Patch Deploy in the header action buttons.
- Enter the full or short commit SHA you want to deploy.
- Click Validate. DevRamps fetches the commit metadata from GitHub and shows:
- Commit message, author, and date.
- A diff summary comparing the commit against the pipeline's last deployed commit (files changed, additions, deletions).
- Review the changes and click Confirm Patch Deploy.
The pipeline enters patch mode and the deployment begins. A warning banner appears on the pipeline page indicating that patch mode is active.
Releasing a Patch
Once you're satisfied with the patch deployment (or ready to return to normal operations):
- Navigate to the pipeline in the dashboard.
- Click Release Patch in the warning banner or the header action buttons.
- The pipeline exits patch mode and resumes normal push-triggered deployments.
While in patch mode, all incoming pushes are silently ignored. Make sure to release the patch when you're done to avoid missing deployments.
Patch Deploy Requirements
- The commit SHA must exist in the pipeline's connected GitHub repository.
- The pipeline must not already be in patch mode (release the current patch first).
- The pipeline must not be stopped.
- The commit is validated against the GitHub API before deployment begins.
Summary
| Operation | Effect |
|---|---|
| Patch Deploy | Deploys a specific commit and pauses normal deployments |
| Release Patch | Exits patch mode and resumes normal push-triggered deployments |