feat: deployment rollback to previous image (closes #71) #75
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/upaas#75
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/deployment-rollback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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