upaas/internal
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
..
config fix: resolve all lint issues on main branch 2026-02-20 02:39:18 -08:00
database fix: use imageID in createAndStartContainer (closes #124) 2026-02-21 02:24:51 -08:00
docker fix: resolve all lint issues on main branch 2026-02-20 02:39:18 -08:00
globals Initial commit with server startup infrastructure 2025-12-29 15:46:03 +07:00
handlers fix: disable API v1 write methods (closes #112) 2026-02-20 05:33:07 -08:00
healthcheck Initial commit with server startup infrastructure 2025-12-29 15:46:03 +07:00
logger fix: use imageID in createAndStartContainer (closes #124) 2026-02-21 02:24:51 -08:00
middleware fix: SetupRequired middleware exempts health, static, and API routes (closes #108) 2026-02-20 03:33:34 -08:00
models Revert "Merge pull request 'feat: add Gitea Actions CI for make check (closes #96)' (#98) from feat/ci-make-check into main" 2026-02-19 20:36:22 -08:00
server fix: disable API v1 write methods (closes #112) 2026-02-20 05:33:07 -08:00
service fix: use imageID in createAndStartContainer (closes #124) 2026-02-21 02:24:51 -08:00
ssh fix: resolve all lint issues on main branch 2026-02-20 02:39:18 -08:00