mirror of
https://github.com/docker/actions-toolkit.git
synced 2024-11-26 22:26:08 +08:00
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:
parent
dacd1a0351
commit
6c05e09cb8
@ -84,6 +84,9 @@ export class History {
|
|||||||
core.info(`exporting build record to ${outDir}`);
|
core.info(`exporting build record to ${outDir}`);
|
||||||
fs.mkdirSync(outDir, {recursive: true});
|
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({
|
const buildxInFifoPath = Context.tmpName({
|
||||||
template: 'buildx-in-XXXXXX.fifo',
|
template: 'buildx-in-XXXXXX.fifo',
|
||||||
tmpdir: Context.tmpDir()
|
tmpdir: Context.tmpDir()
|
||||||
|
Loading…
Reference in New Issue
Block a user