- Add previous_image_id column to apps table (migration 006)
- Save current image as previous before deploying new one
- POST /apps/{id}/rollback endpoint with handler
- Rollback stops current container, starts previous image
- Creates deployment record for rollback operations
- Rollback button in app detail UI (only when previous image exists)
- Add btn-warning CSS class for rollback button styling
fixes#71
sneak
merged commit 046cccf31f into main2026-02-16 09:25:34 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Implements deployment rollback feature per issue #71 / TODO.md Phase 3.2.
Changes
previous_image_idcolumn to apps tableprevious_image_idbefore deploying new onePOST /apps/{id}/rollback— stops current container, starts previous image, creates deployment recordbtn-warningclass for rollback button stylingTest Results
✅ All tests pass (
make test)✅ Lint clean (
golangci-lint run ./...— 0 issues)fixes #71
- Add previous_image_id column to apps table (migration 006) - Save current image as previous before deploying new one - POST /apps/{id}/rollback endpoint with handler - Rollback stops current container, starts previous image - Creates deployment record for rollback operations - Rollback button in app detail UI (only when previous image exists) - Add btn-warning CSS class for rollback button styling fixes #71