feat(deploy): stream live build logs in build progress modal

Show real-time kaniko/init-container build output inside the build
progress modal during the building/deploying phases, alongside the
existing percentage. The build-logs endpoint now returns live pod logs
while a build is in progress (falling back to the persisted log once
finished), and the modal polls it every 2s with auto-scroll. Minimize
behaviour is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
keyhan
2026-06-16 01:50:14 +03:30
parent e53fc8e2ff
commit 6022739b80
5 changed files with 80 additions and 3 deletions
+12 -1
View File
@@ -507,8 +507,19 @@ export class DeploymentsService {
};
}
// While the build is in progress the persisted buildLog isn't written yet —
// stream the live build pod logs so the deploy modal can show them in real time.
let buildLog = latest.buildLog || null;
if (
latest.status === DeploymentStatus.BUILDING ||
latest.status === DeploymentStatus.DEPLOYING
) {
const live = await this.buildService.getLiveBuildLog(latest.id);
if (live) buildLog = live;
}
return {
buildLog: latest.buildLog || null,
buildLog,
status: latest.status,
version: latest.version,
createdAt: latest.createdAt,