“Borrow” the code from alerts PR to get self hosted deployments working

This commit is contained in:
Eric Allam
2024-04-30 22:12:19 +01:00
parent f124d94efc
commit 3b3b07aec2
3 changed files with 6 additions and 3 deletions
@@ -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",
},
});
+1
View File
@@ -387,6 +387,7 @@ async function _deployCommand(dir: string, options: DeployCommandOptions) {
deploymentResponse.data.id,
{
imageReference,
selfHosted: options.selfHosted,
}
);
+1
View File
@@ -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>;