Rolling back a deploy
Go back to an earlier version, by hand or automatically.
Automatic rollback
If a deploy fails, Pyo puts the previous version back automatically. This is on by default. You can turn it off per service.
Roll back by hand
Pick an earlier deployment in the dashboard, or use the CLI:
pyo rollback # the previous version
pyo rollback <deployment> # a specific deploymentA rollback keeps the service's current domains.
A rollback runs the exact image that version ran, by its digest. For a service that runs an image, it also sets the service's tag or digest back to that version's. After rolling back from v2 to v1, the service says v1, and the next deploy runs v1 again. When the service's image changed to another repository since that version, the rollback still runs that version, and the service keeps its current tag.
Rolling back needs that version's image. You can't roll back to images removed by retentionPyo deletes the images it built for older deployments to save space. You choose how many deployments it keeps per service under Images → Registry..