Merge pull request #453 from crazy-max/history-finalize

buildx(history): wait for build records to be finalized
This commit is contained in:
CrazyMax 2024-09-27 12:10:21 +02:00 committed by GitHub
commit 18c8bddca3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()