Promote an image
Preview first. The preview shows the image on each side (with its digest when one is known), the config differences, the env var keys that would be added, removed or changed (never values), and anything that blocks the promotion:- Add
--include-envto also apply the added and removed plain env keys. Secret values, domains, ports, volumes and node placement always stay the target’s own. - A promotion into a protected environment needs
--confirmand becomes a pending approval that a different person approves. See Environments. - A source that is unhealthy or whose last deploy failed is refused unless you pass
--force. - In the dashboard, use Promote on the source app’s Deploys tab.
See what a deploy changed
Compare two deploys, or one deploy against what is live now:- Image digest on each side, and a changed digest as its own line.
- Env var keys added, removed or changed. Secret and database-backed values are never shown.
- Commits between the two deploys, newest first, read from the app’s connected git source. When the range cannot be listed (no git source, or a commit older than the provider’s recent window), the response says why instead of guessing.
Release bindings (APP_RELEASE_BINDINGS)
A release is an immutable snapshot of a succeeded deploy: its image pinned by digest plus the environment neutral config (health, replicas, strategy, resources, labels). Never env values, domains, ports or volumes. Each app has a binding that names the release it runs, with a history of every move. The server readsAPP_RELEASE_BINDINGS once at start.
In
on mode a failed apply puts the binding back where it was, and only while no newer move happened. Every move writes a release_binding.retargeted audit entry. An app with no digest recorded keeps the tag path.
Digest checks run on approval. If the registry needs credentials the server does not hold, or answers 401, 403 or a masked “not found”, the check is inconclusive and the approval goes ahead. Only a definite “manifest unknown” blocks it. APP_APPROVE_DIGEST_CHECK_TIMEOUT bounds the lookup. Moving back from on to shadow or off is safe: stored releases stay, and pending approvals that carry a release id still apply that exact image.
What is proven
Covered by tests ininternal/api and internal/release, run against a real store:
shadow: releases and bindings are recorded, but promote ships the tag, an approval carries no release id, rollback leaves the binding where it was, and--releaseis refused with 400.on: promote retargets the binding and ships the digest ref, a protected promote stores the release id so a moved tag changes nothing, rollback retargets to the earlier release, and a failed apply restores the previous binding only while no newer move happened.- Private registry: a 401 from the digest check is inconclusive and promote and approve proceed. A definite missing digest returns 410 on both paths and leaves the binding untouched.
on across several nodes. The default stays off until that run and an owner decision on shadow.
Generate release notes
Release notes group the commits between two deploys by conventional-commit type: breaking changes first, then features, fixes, performance, refactors, docs, tests and other changes.--to out to end at the newest deploy that recorded a commit. The output is markdown you can paste into a release or a status update:
GET /api/v1/apps/{name}/deploys/release-notes?from=ID&to=ID.
Push release notes to notifications
Notes are also pushed, not only pulled. When a deploy succeeds in a production environment, or a promotion completes, the same generator output is attached to the deploy-succeeded notification. It is on by default for those deploys and has no per-app switch.- Generic webhook channels get an optional
release_notesfield (see Event webhooks). - Slack, Mattermost, Rocket.Chat, Webex, Google Chat, Teams, email and Resend get the full markdown after the summary line.
- Discord, Telegram, ntfy, Gotify and Lark get the first 3 lines only. Paging and push channels stay unchanged.
RELEASE_NOTES_MAX_BYTES(default 4000) caps the text,RELEASE_NOTES_PREVIEW_BYTES(default 300) caps the short-channel excerpt,RELEASE_NOTES_TIMEOUT_SECONDS(default 5) bounds generation.- If generation fails or the range cannot be listed, the notification goes out without notes. A promotion only gets notes when the target app has deploys that recorded a git commit.
Example flow
- Deploy to staging and let it settle.
apps promote web-staging --to env_production --previewand read the env key changes.apps promote web-staging --to env_production --confirm, then approve it as a second person.apps deploys release-notes web-prod --from <last prod deploy>and paste the result.