feat: able to push image to docker registry

This commit is contained in:
Andras Bacsai
2022-12-01 14:39:02 +01:00
parent 127880cf8d
commit 8ccb0c88db
9 changed files with 102 additions and 20 deletions

View File

@@ -335,7 +335,8 @@ export async function saveApplication(request: FastifyRequest<SaveApplication>,
dockerComposeFile,
dockerComposeFileLocation,
dockerComposeConfiguration,
simpleDockerfile
simpleDockerfile,
dockerRegistryImageName
} = request.body
if (port) port = Number(port);
if (exposePort) {
@@ -375,6 +376,7 @@ export async function saveApplication(request: FastifyRequest<SaveApplication>,
dockerComposeFileLocation,
dockerComposeConfiguration,
simpleDockerfile,
dockerRegistryImageName,
...defaultConfiguration,
connectedDatabase: { update: { hostedDatabaseDBName: baseDatabaseBranch } }
}
@@ -398,6 +400,7 @@ export async function saveApplication(request: FastifyRequest<SaveApplication>,
dockerComposeFileLocation,
dockerComposeConfiguration,
simpleDockerfile,
dockerRegistryImageName,
...defaultConfiguration
}
});

View File

@@ -26,7 +26,8 @@ export interface SaveApplication extends OnlyId {
dockerComposeFile: string,
dockerComposeFileLocation: string,
dockerComposeConfiguration: string,
simpleDockerfile: string
simpleDockerfile: string,
dockerRegistryImageName: string
}
}
export interface SaveApplicationSettings extends OnlyId {