fix: add registryId for private container registry authentication
This commit is contained in:
@@ -88,6 +88,7 @@ async function deployStack(deploymentId: string): Promise<void> {
|
|||||||
port: 8080,
|
port: 8080,
|
||||||
healthCheckTimeout: 180000,
|
healthCheckTimeout: 180000,
|
||||||
healthCheckInterval: 5000,
|
healthCheckInterval: 5000,
|
||||||
|
registryId: process.env.STACK_REGISTRY_ID,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Final update with logs
|
// Final update with logs
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ export interface DeploymentConfig {
|
|||||||
port?: number;
|
port?: number;
|
||||||
healthCheckTimeout?: number;
|
healthCheckTimeout?: number;
|
||||||
healthCheckInterval?: number;
|
healthCheckInterval?: number;
|
||||||
|
registryId?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DeploymentState {
|
export interface DeploymentState {
|
||||||
@@ -276,6 +277,7 @@ export class ProductionDeployer {
|
|||||||
await this.client.updateApplication(state.resources.applicationId, {
|
await this.client.updateApplication(state.resources.applicationId, {
|
||||||
dockerImage: config.dockerImage,
|
dockerImage: config.dockerImage,
|
||||||
sourceType: 'docker',
|
sourceType: 'docker',
|
||||||
|
registryId: config.registryId,
|
||||||
});
|
});
|
||||||
|
|
||||||
state.progress = 55;
|
state.progress = 55;
|
||||||
|
|||||||
Reference in New Issue
Block a user