File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
apps/webapp/app/v3/services
packages/core/src/v3/schemas Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,15 @@ export class FinalizeDeploymentV2Service extends BaseService {
7171 throw new ServiceValidationError ( "Worker deployment is not in DEPLOYING status" ) ;
7272 }
7373
74+ const finalizeService = new FinalizeDeploymentService ( ) ;
75+
76+ if ( body . skipPushToRegistry ) {
77+ logger . debug ( "Skipping push to registry during deployment finalization" , {
78+ deployment,
79+ } ) ;
80+ return await finalizeService . call ( authenticatedEnv , id , body ) ;
81+ }
82+
7483 const externalBuildData = deployment . externalBuildData
7584 ? ExternalBuildData . safeParse ( deployment . externalBuildData )
7685 : undefined ;
@@ -134,7 +143,6 @@ export class FinalizeDeploymentV2Service extends BaseService {
134143 pushedImage : pushResult . image ,
135144 } ) ;
136145
137- const finalizeService = new FinalizeDeploymentService ( ) ;
138146 const finalizedDeployment = await finalizeService . call ( authenticatedEnv , id , body ) ;
139147
140148 return finalizedDeployment ;
Original file line number Diff line number Diff line change @@ -373,6 +373,7 @@ export type StartDeploymentIndexingResponseBody = z.infer<
373373export const FinalizeDeploymentRequestBody = z . object ( {
374374 skipPromotion : z . boolean ( ) . optional ( ) ,
375375 imageDigest : z . string ( ) . optional ( ) ,
376+ skipPushToRegistry : z . boolean ( ) . optional ( ) ,
376377} ) ;
377378
378379export type FinalizeDeploymentRequestBody = z . infer < typeof FinalizeDeploymentRequestBody > ;
You can’t perform that action at this time.
0 commit comments