Production Release and Recovery
Pin artifacts, order schema changes, switch a single-server entry, and recover a failed release with a recorded previous version.
Complete this path in order
- 01 OneDev tutorialA OneDev tutorial from Docker Compose and PostgreSQL through Caddy HTTPS, Git SSH, the first project, CI/CD, immutable image deploys, backup, restore, and recoverable upgrades. About 14 min
- 02 Pin Docker image digestsPin a Docker image digest as repository:tag@sha256 so rebuilds and rollbacks pull the same artifact, including multi-platform indexes and runtime RepoDigests. About 8 min
- 03 When to run database migrationsWhen to run database migrations: add compatible schema first, backfill after dual-writing code is live, and drop old columns only after old consumers exit. About 9 min
- 04 Docker Compose blue-green deployRun Docker Compose blue-green on one server: start a candidate project, prove it ready, switch Caddy, verify the public hostname, then drain the old instance. About 9 min
- 05 Automatic rollback for a failed deploymentAutomatic rollback for a failed deployment restores the previous version or finishes a verified commit from candidate state, the traffic switch, business checks, and the on-disk receipt. About 9 min