upaas/internal/database
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
..
migrations feat: deployment rollback to previous image 2026-02-16 00:23:11 -08:00
database.go fix: resolve all golangci-lint issues 2026-02-15 21:55:24 -08:00
hash_test.go fix: use hashed webhook secrets for constant-time comparison 2026-02-15 14:06:53 -08:00
migrations.go Initial commit with server startup infrastructure 2025-12-29 15:46:03 +07:00
testing.go fix: use imageID in createAndStartContainer (closes #124) 2026-02-21 02:24:51 -08:00