upaas/internal/service/deploy
user 0e8efe1043
All checks were successful
Check / check (pull_request) Successful in 11m24s
fix: use imageID in createAndStartContainer (closes #124)
Wire the imageID parameter (returned from docker build) through
createAndStartContainer and buildContainerOptions instead of
reconstructing a mutable tag via fmt.Sprintf.

This ensures containers reference the immutable image digest,
avoiding tag-reuse races when deploys overlap.

Changes:
- Rename _ string to imageID string in createAndStartContainer
- Change buildContainerOptions to accept imageID string instead of deploymentID int64
- Use imageID directly as the Image field in container options
- Update rollback path to pass previousImageID directly
- Add test verifying imageID flows through to container options
- Add database.NewTestDatabase and logger.NewForTest test helpers
2026-02-21 02:24:51 -08:00
..
deploy_cancel_test.go fix: cancel in-progress deploy when webhook triggers new deploy (closes #38) 2026-02-15 22:12:03 -08:00
deploy_cleanup_test.go fix: resolve all lint issues on main branch 2026-02-20 02:39:18 -08:00
deploy_container_test.go fix: use imageID in createAndStartContainer (closes #124) 2026-02-21 02:24:51 -08:00
deploy.go fix: use imageID in createAndStartContainer (closes #124) 2026-02-21 02:24:51 -08:00
export_test.go fix: use imageID in createAndStartContainer (closes #124) 2026-02-21 02:24:51 -08:00