fix: only log things to console in dev mode
This commit is contained in:
parent
df31e47313
commit
91e7cffccc
1 changed files with 3 additions and 1 deletions
|
|
@ -472,7 +472,8 @@ export const saveBuildLog = async ({
|
|||
|
||||
if (isDev) {
|
||||
console.debug(`[${applicationId}] ${addTimestamp}`);
|
||||
}
|
||||
return
|
||||
}
|
||||
try {
|
||||
return await got.post(`${fluentBitUrl}/${applicationId}_buildlog_${buildId}.csv`, {
|
||||
json: {
|
||||
|
|
@ -697,6 +698,7 @@ export async function buildCacheImageWithNode(data, imageForBuild) {
|
|||
if (installCommand) {
|
||||
Dockerfile.push(`RUN ${installCommand}`);
|
||||
}
|
||||
// Dockerfile.push(`ARG CACHEBUST=1`);
|
||||
Dockerfile.push(`RUN ${buildCommand}`);
|
||||
await fs.writeFile(`${workdir}/Dockerfile-cache`, Dockerfile.join('\n'));
|
||||
await buildImage({ ...data, isCache: true });
|
||||
|
|
|
|||
Loading…
Reference in a new issue