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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user