|
|
|
@ -307,7 +307,6 @@ actionsToolkit.run(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
await core.group('Cleaning up Blacksmith builder', async () => {
|
|
|
|
await core.group('Cleaning up Blacksmith builder', async () => {
|
|
|
|
if (builderInfo.addr) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
let exportRes;
|
|
|
|
let exportRes;
|
|
|
|
if (!buildError) {
|
|
|
|
if (!buildError) {
|
|
|
|
@ -332,9 +331,19 @@ actionsToolkit.run(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
core.info('Unmounted device');
|
|
|
|
core.info('Unmounted device');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (builderInfo.addr) {
|
|
|
|
if (!buildError) {
|
|
|
|
if (!buildError) {
|
|
|
|
await reporter.reportBuildCompleted(exportRes, builderInfo.buildId, ref, buildDurationSeconds, builderInfo.exposeId);
|
|
|
|
await reporter.reportBuildCompleted(exportRes, builderInfo.buildId, ref, buildDurationSeconds, builderInfo.exposeId);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
await reporter.reportBuildFailed(builderInfo.buildId, buildDurationSeconds, builderInfo.exposeId);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
|
|
core.warning(`Error during Blacksmith builder shutdown: ${error.message}`);
|
|
|
|
|
|
|
|
await reporter.reportBuildPushActionFailure(error);
|
|
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
|
|
if (buildError) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const buildkitdLog = fs.readFileSync('buildkitd.log', 'utf8');
|
|
|
|
const buildkitdLog = fs.readFileSync('buildkitd.log', 'utf8');
|
|
|
|
core.info('buildkitd.log contents:');
|
|
|
|
core.info('buildkitd.log contents:');
|
|
|
|
@ -342,11 +351,6 @@ actionsToolkit.run(
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|
core.warning(`Failed to read buildkitd.log: ${error.message}`);
|
|
|
|
core.warning(`Failed to read buildkitd.log: ${error.message}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
await reporter.reportBuildFailed(builderInfo.buildId, buildDurationSeconds, builderInfo.exposeId);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
|
|
core.warning(`Error during Blacksmith builder shutdown: ${error.message}`);
|
|
|
|
|
|
|
|
await reporter.reportBuildPushActionFailure(error);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|