mirror of
https://github.com/docker/build-push-action.git
synced 2025-05-06 13:39:30 +02:00
Merge pull request #96 from useblacksmith/add-sync
src: add sync before umount
This commit is contained in:
commit
6ff8522817
3 changed files with 4 additions and 2 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -378,6 +378,8 @@ actionsToolkit.run(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
// Run sync to flush any pending writes before unmounting.
|
||||||
|
await execAsync('sync');
|
||||||
const {stdout: mountOutput} = await execAsync(`mount | grep ${mountPoint}`);
|
const {stdout: mountOutput} = await execAsync(`mount | grep ${mountPoint}`);
|
||||||
if (mountOutput) {
|
if (mountOutput) {
|
||||||
for (let attempt = 1; attempt <= 3; attempt++) {
|
for (let attempt = 1; attempt <= 3; attempt++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue