mirror of
https://github.com/docker/actions-toolkit.git
synced 2024-11-23 03:16:09 +08:00
Merge pull request #465 from crazy-max/use-util-sleep
buildx(history): use Util.sleep
This commit is contained in:
commit
ccc7548899
@ -26,6 +26,7 @@ import {Context} from '../context';
|
|||||||
import {Docker} from '../docker/docker';
|
import {Docker} from '../docker/docker';
|
||||||
import {Exec} from '../exec';
|
import {Exec} from '../exec';
|
||||||
import {GitHub} from '../github';
|
import {GitHub} from '../github';
|
||||||
|
import {Util} from '../util';
|
||||||
|
|
||||||
import {ExportRecordOpts, ExportRecordResponse, Summaries} from '../types/buildx/history';
|
import {ExportRecordOpts, ExportRecordResponse, Summaries} from '../types/buildx/history';
|
||||||
|
|
||||||
@ -85,7 +86,7 @@ export class History {
|
|||||||
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
|
// wait 3 seconds to ensure build records are finalized: https://github.com/moby/buildkit/pull/5109
|
||||||
await new Promise(resolve => setTimeout(resolve, 3000));
|
await Util.sleep(3);
|
||||||
|
|
||||||
const buildxInFifoPath = Context.tmpName({
|
const buildxInFifoPath = Context.tmpName({
|
||||||
template: 'buildx-in-XXXXXX.fifo',
|
template: 'buildx-in-XXXXXX.fifo',
|
||||||
|
Loading…
Reference in New Issue
Block a user