Deploy a release to all your primary origins at once
Live on preview.zitadel.comReleased in v0.1.0
Every deployment now carries a kind, primary or preview, and a status, live or inactive. A project's primary origins are deployed as a whole: POST /deployments with targets: ["primary"] makes a release live on all of them, so they always serve the same deployment, and a rollback re-deploys to every primary origin the project has.
- Deploying the release that is already live answers
200and writes nothing. expected_deployment_idguards against racing another deploy, which answers409withdep.conflict.GET /deploymentslists the deployments newest first:originnarrows the list to one origin,live=truelists what is served now, andexpand=releaseembeds the release each one made live.GET /deployments/{deployment_id}reads one.
Breaking: a deploy that names a primary origin answers 400 with dep.invalid; deploy to primary instead.