@@ -222,10 +222,10 @@ async function _deployCommand(dir: string, options: DeployCommandOptions) {
222222 forcedExternals,
223223 listener : {
224224 onBundleStart ( ) {
225- $buildSpinner . start ( "Building project " ) ;
225+ $buildSpinner . start ( "Building trigger code " ) ;
226226 } ,
227227 onBundleComplete ( result ) {
228- $buildSpinner . stop ( "Successfully built project " ) ;
228+ $buildSpinner . stop ( "Successfully built code " ) ;
229229
230230 logger . debug ( "Bundle result" , result ) ;
231231 } ,
@@ -328,9 +328,9 @@ async function _deployCommand(dir: string, options: DeployCommandOptions) {
328328 const $spinner = spinner ( ) ;
329329
330330 if ( isLinksSupported ) {
331- $spinner . start ( `Deploying version ${ version } ${ deploymentLink } ` ) ;
331+ $spinner . start ( `Building version ${ version } ${ deploymentLink } ` ) ;
332332 } else {
333- $spinner . start ( `Deploying version ${ version } ` ) ;
333+ $spinner . start ( `Building version ${ version } ` ) ;
334334 }
335335
336336 const selfHostedRegistryHost = deployment . registryHost ?? options . registry ;
@@ -359,6 +359,13 @@ async function _deployCommand(dir: string, options: DeployCommandOptions) {
359359 compilationPath : destination . path ,
360360 buildEnvVars : buildManifest . build . env ,
361361 network : options . network ,
362+ onLog : ( logMessage ) => {
363+ if ( isLinksSupported ) {
364+ $spinner . message ( `Building version ${ version } ${ deploymentLink } : ${ logMessage } ` ) ;
365+ } else {
366+ $spinner . message ( `Building version ${ version } : ${ logMessage } ` ) ;
367+ }
368+ } ,
362369 } ) ;
363370
364371 logger . debug ( "Build result" , buildResult ) ;
@@ -426,10 +433,26 @@ async function _deployCommand(dir: string, options: DeployCommandOptions) {
426433 } `
427434 : `${ buildResult . image } ${ buildResult . digest ? `@${ buildResult . digest } ` : "" } ` ;
428435
429- const finalizeResponse = await projectClient . client . finalizeDeployment ( deployment . id , {
430- imageReference,
431- selfHosted : options . selfHosted ,
432- } ) ;
436+ if ( isLinksSupported ) {
437+ $spinner . message ( `Deploying version ${ version } ${ deploymentLink } ` ) ;
438+ } else {
439+ $spinner . message ( `Deploying version ${ version } ` ) ;
440+ }
441+
442+ const finalizeResponse = await projectClient . client . finalizeDeployment (
443+ deployment . id ,
444+ {
445+ imageReference,
446+ selfHosted : options . selfHosted ,
447+ } ,
448+ ( logMessage ) => {
449+ if ( isLinksSupported ) {
450+ $spinner . message ( `Deploying version ${ version } ${ deploymentLink } : ${ logMessage } ` ) ;
451+ } else {
452+ $spinner . message ( `Deploying version ${ version } : ${ logMessage } ` ) ;
453+ }
454+ }
455+ ) ;
433456
434457 if ( ! finalizeResponse . success ) {
435458 await failDeploy (
0 commit comments