“Borrow” the code from alerts PR to get self hosted deployments working
This commit is contained in:
@@ -15,9 +15,10 @@ export class StartDeploymentIndexing extends BaseService {
|
||||
friendlyId: deploymentId,
|
||||
},
|
||||
data: {
|
||||
imageReference: registryProxy
|
||||
? registryProxy.rewriteImageReference(body.imageReference)
|
||||
: body.imageReference,
|
||||
imageReference:
|
||||
registryProxy && body.selfHosted !== true
|
||||
? registryProxy.rewriteImageReference(body.imageReference)
|
||||
: body.imageReference,
|
||||
status: "DEPLOYING",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -387,6 +387,7 @@ async function _deployCommand(dir: string, options: DeployCommandOptions) {
|
||||
deploymentResponse.data.id,
|
||||
{
|
||||
imageReference,
|
||||
selfHosted: options.selfHosted,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -116,6 +116,7 @@ export type GetEnvironmentVariablesResponseBody = z.infer<
|
||||
|
||||
export const StartDeploymentIndexingRequestBody = z.object({
|
||||
imageReference: z.string(),
|
||||
selfHosted: z.boolean().optional(),
|
||||
});
|
||||
|
||||
export type StartDeploymentIndexingRequestBody = z.infer<typeof StartDeploymentIndexingRequestBody>;
|
||||
|
||||
Reference in New Issue
Block a user