buildx(history): wait for build records to be finalized

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-09-27 10:27:27 +02:00
parent dacd1a0351
commit 6c05e09cb8
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4

View File

@ -84,6 +84,9 @@ export class History {
core.info(`exporting build record to ${outDir}`);
fs.mkdirSync(outDir, {recursive: true});
// wait 3 seconds to ensure build records are finalized: https://github.com/moby/buildkit/pull/5109
await new Promise(resolve => setTimeout(resolve, 3000));
const buildxInFifoPath = Context.tmpName({
template: 'buildx-in-XXXXXX.fifo',
tmpdir: Context.tmpDir()