src: only resolve buildref on success
parent
99d48d070c
commit
9841eabab1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
13
src/main.ts
13
src/main.ts
|
@ -738,10 +738,13 @@ actionsToolkit.run(
|
|||
await core.group('Cleaning up Blacksmith builder', async () => {
|
||||
if (builderInfo.addr) {
|
||||
try {
|
||||
const buildxHistory = new BuildxHistory();
|
||||
const exportRes = await buildxHistory.export({
|
||||
refs: ref ? [ref] : []
|
||||
});
|
||||
let exportRes;
|
||||
if (!buildError) {
|
||||
const buildxHistory = new BuildxHistory();
|
||||
exportRes = await buildxHistory.export({
|
||||
refs: ref ? [ref] : []
|
||||
});
|
||||
}
|
||||
await shutdownBuildkitd();
|
||||
core.info('Shutdown buildkitd');
|
||||
for (let attempt = 1; attempt <= 3; attempt++) {
|
||||
|
@ -862,4 +865,4 @@ function buildSummaryEnabled(): boolean {
|
|||
return Util.parseBool(process.env.DOCKER_BUILD_SUMMARY);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue