upaas/internal/service
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
..
app fix: use hashed webhook secrets for constant-time comparison 2026-02-15 14:06:53 -08:00
auth fix: set DestroySession MaxAge to -1 instead of -1*time.Second (closes #39) 2026-02-15 22:07:57 -08:00
deploy fix: use imageID in createAndStartContainer (closes #124) 2026-02-21 02:24:51 -08:00
notify fix: resolve all lint issues on main branch 2026-02-20 02:39:18 -08:00
webhook 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