Set up deployment freezes for your repositories in just a few minutes.
Click the button below to install the GitHub Deploy Freeze app from the GitHub Marketplace.
Install from GitHub MarketplaceYou'll be redirected to GitHub to authorize the app. You can choose to install it on all repositories or select specific ones.
For each repository where you want to use deployment freezes, you need to add our app as a deployment protection rule.
Tip: You need to do this for each environment you want to protect. For example, set it up for "production" but not "staging" if you want to freeze prod but keep staging open.
You can freeze deployments in two ways:
To unfreeze, simply click the Unfreeze button next to the frozen environment.
Use our published GitHub Actions in your workflows to freeze/unfreeze programmatically:
# .github/workflows/freeze.yml
name: Freeze Production
on:
workflow_dispatch:
jobs:
freeze:
runs-on: ubuntu-latest
steps:
- name: Freeze production
uses: your-org/deploy-freeze-action@v1
with:
action: freeze
environment: production
reason: "Planned maintenance"
# Optional: auto-expire after duration
expires_in: "24h"Documentation for our GitHub Actions will be available soon.
Verify that the freeze is working:
Success! When a deployment is blocked, GitHub will show a message like: "Deployment blocked by GitHub Deploy Freeze: Holiday freeze"
Freeze production deployments from December 20 to January 2:
expires_in: "336h"Prevent deployments during Black Friday or a product launch:
Quickly stop all deployments during an incident:
Check these things: