text changes
This commit is contained in:
@@ -641,9 +641,9 @@ export async function buildImage({
|
||||
commit
|
||||
}) {
|
||||
if (isCache) {
|
||||
await saveBuildLog({ line: `[CACHE] Building cache image.`, buildId, applicationId });
|
||||
await saveBuildLog({ line: `Cache | Building cache image.`, buildId, applicationId });
|
||||
} else {
|
||||
await saveBuildLog({ line: `[PRODUCTION] Building production image.`, buildId, applicationId });
|
||||
await saveBuildLog({ line: `Production | Building production image.`, buildId, applicationId });
|
||||
}
|
||||
if (!debug) {
|
||||
await saveBuildLog({
|
||||
@@ -667,12 +667,12 @@ export async function buildImage({
|
||||
|
||||
const { status } = await prisma.build.findUnique({ where: { id: buildId } })
|
||||
if (status === 'canceled') {
|
||||
throw new Error('[DEPLOYMENT] Canceled!!!')
|
||||
throw new Error('Deployment | Canceled!!!')
|
||||
}
|
||||
if (isCache) {
|
||||
await saveBuildLog({ line: `[CACHE] Successful! 🎉`, buildId, applicationId });
|
||||
await saveBuildLog({ line: `Cache | Successful! 🎉`, buildId, applicationId });
|
||||
} else {
|
||||
await saveBuildLog({ line: `[PRODUCTION] Successful! 🎉`, buildId, applicationId });
|
||||
await saveBuildLog({ line: `Production | Successful! 🎉`, buildId, applicationId });
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1535,7 +1535,7 @@ export async function stopBuild(buildId, applicationId) {
|
||||
scheduler.workers.get('deployApplication').postMessage('cancel');
|
||||
}
|
||||
await cleanupDB(buildId, applicationId);
|
||||
return reject(new Error('[DEPLOYMENT] Canceled!!!'));
|
||||
return reject(new Error('Deployment | Canceled!!!'));
|
||||
}
|
||||
const { stdout: buildContainers } = await executeDockerCmd({
|
||||
dockerId,
|
||||
@@ -1568,7 +1568,7 @@ async function cleanupDB(buildId: string, applicationId: string) {
|
||||
if (data?.status === 'queued' || data?.status === 'running') {
|
||||
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) {
|
||||
|
@@ -30,16 +30,16 @@ export default async function ({
|
||||
}): Promise<string> {
|
||||
const { default: got } = await import('got')
|
||||
const url = htmlUrl.replace('https://', '').replace('http://', '');
|
||||
await saveBuildLog({ line: '[IMPORTER] Warming up GitHub importer.', buildId, applicationId });
|
||||
await saveBuildLog({ line: 'Importer | Warming up GitHub importer.', buildId, applicationId });
|
||||
if (forPublic) {
|
||||
await saveBuildLog({
|
||||
line: `[IMPORTER] Cloning ${repository}:${branch} branch.`,
|
||||
line: `Importer | Cloning ${repository}:${branch} branch.`,
|
||||
buildId,
|
||||
applicationId
|
||||
});
|
||||
if (gitCommitHash) {
|
||||
await saveBuildLog({
|
||||
line: `[IMPORTER] Checking out ${gitCommitHash} commit.`,
|
||||
line: `Importer | Checking out ${gitCommitHash} commit.`,
|
||||
buildId,
|
||||
applicationId
|
||||
});
|
||||
@@ -71,13 +71,13 @@ export default async function ({
|
||||
})
|
||||
.json();
|
||||
await saveBuildLog({
|
||||
line: `[IMPORTER] Cloning ${repository}:${branch} branch.`,
|
||||
line: `Importer | Cloning ${repository}:${branch} branch.`,
|
||||
buildId,
|
||||
applicationId
|
||||
});
|
||||
if (gitCommitHash) {
|
||||
await saveBuildLog({
|
||||
line: `[IMPORTER] Checking out ${gitCommitHash} commit.`,
|
||||
line: `Importer | Checking out ${gitCommitHash} commit.`,
|
||||
buildId,
|
||||
applicationId
|
||||
});
|
||||
|
@@ -27,7 +27,7 @@ export default async function ({
|
||||
forPublic: boolean;
|
||||
}): Promise<string> {
|
||||
const url = htmlUrl.replace('https://', '').replace('http://', '').replace(/\/$/, '');
|
||||
await saveBuildLog({ line: '[IMPORTER] Warming up GitLab importer.', buildId, applicationId });
|
||||
await saveBuildLog({ line: 'Importer | Warming up GitLab importer.', buildId, applicationId });
|
||||
|
||||
if (!forPublic) {
|
||||
await asyncExecShell(`echo '${privateSshKey}' > ${repodir}/id.rsa`);
|
||||
@@ -35,13 +35,13 @@ export default async function ({
|
||||
}
|
||||
|
||||
await saveBuildLog({
|
||||
line: `[IMPORTER] Cloning ${repository}:${branch} branch.`,
|
||||
line: `Importer | Cloning ${repository}:${branch} branch.`,
|
||||
buildId,
|
||||
applicationId
|
||||
});
|
||||
if (gitCommitHash) {
|
||||
await saveBuildLog({
|
||||
line: `[IMPORTER] Checking out ${gitCommitHash} commit.`,
|
||||
line: `Importer | Checking out ${gitCommitHash} commit.`,
|
||||
buildId,
|
||||
applicationId
|
||||
});
|
||||
|
Reference in New Issue
Block a user