haha
This commit is contained in:
@@ -667,7 +667,7 @@ export async function buildImage({
|
|||||||
|
|
||||||
const { status } = await prisma.build.findUnique({ where: { id: buildId } })
|
const { status } = await prisma.build.findUnique({ where: { id: buildId } })
|
||||||
if (status === 'canceled') {
|
if (status === 'canceled') {
|
||||||
throw new Error('Deployment | Canceled!!!')
|
throw new Error('Deployment | Canceled.')
|
||||||
}
|
}
|
||||||
if (isCache) {
|
if (isCache) {
|
||||||
await saveBuildLog({ line: `Cache | Successful! 🎉`, buildId, applicationId });
|
await saveBuildLog({ line: `Cache | Successful! 🎉`, buildId, applicationId });
|
||||||
|
@@ -1535,7 +1535,7 @@ export async function stopBuild(buildId, applicationId) {
|
|||||||
scheduler.workers.get('deployApplication').postMessage('cancel');
|
scheduler.workers.get('deployApplication').postMessage('cancel');
|
||||||
}
|
}
|
||||||
await cleanupDB(buildId, applicationId);
|
await cleanupDB(buildId, applicationId);
|
||||||
return reject(new Error('Deployment | Canceled!!!'));
|
return reject(new Error('Deployment | Canceled.'));
|
||||||
}
|
}
|
||||||
const { stdout: buildContainers } = await executeDockerCmd({
|
const { stdout: buildContainers } = await executeDockerCmd({
|
||||||
dockerId,
|
dockerId,
|
||||||
@@ -1568,7 +1568,7 @@ async function cleanupDB(buildId: string, applicationId: string) {
|
|||||||
if (data?.status === 'queued' || data?.status === 'running') {
|
if (data?.status === 'queued' || data?.status === 'running') {
|
||||||
await prisma.build.update({ where: { id: buildId }, data: { status: 'canceled' } });
|
await prisma.build.update({ where: { id: buildId }, data: { status: 'canceled' } });
|
||||||
}
|
}
|
||||||
await saveBuildLog({ line: 'Deployment | Canceled!!!', buildId, applicationId });
|
await saveBuildLog({ line: 'Deployment | Canceled.', buildId, applicationId });
|
||||||
}
|
}
|
||||||
|
|
||||||
export function convertTolOldVolumeNames(type) {
|
export function convertTolOldVolumeNames(type) {
|
||||||
|
Reference in New Issue
Block a user