What is staging mode?
Staging mode lets you keep a container out of automatic release updates and manually promote ready updates after testing them through Tinfoil’s staging ingress. It is intended for validating a tag before it replaces the currently serving deployment.When to use staging mode
- Validating a new release tag before switching production traffic
- Pinning a long-lived test deployment to a specific tag
- Manually controlling promotion instead of auto-updating on release webhooks
How it works
Staging containers use the same production certificate flow as normal containers. The difference is in update promotion:| Production | Staging | |
|---|---|---|
| Ready updates | Automatically promoted | Wait for manual promotion |
| Auto-update on new releases | Yes (when enabled) | No |
Deploying a staging container
- In the All Containers tab, click Create Deployment
- Configure the container as normal
- Tick the Staging checkbox above the launch button
- Click Deploy in Staging
Updating a staging container
A staging container is never auto-updated by a GitHub release webhook, even if Auto update is enabled on the container. To pick up a new tag, click Update, select the tag, and click Deploy in Staging. If a staging update candidate becomes ready while the container itself is already in staging, click Promote Update to switch traffic to the staged deployment, or Cancel Update to discard it.Promoting to production
A staging container shows a Deploy to Prod button in its action sidebar. Click it to relaunch the container with the same tag and configuration in production mode. The new deployment goes through the normal blue/green relaunch flow and, once ready, is marked as the GitHublatest release.
This is the recommended path. If you instead want to push a new tag directly
to production, open the Update dialog, leave the Staging checkbox
unchecked, and click Update — the same end-state is reached.
The GitHub latest release is bumped only when the post-deploy mode is
neither staging nor debug.
