Skip to content

Commit

Permalink
fix: get docker commands to await
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Nov 21, 2024
1 parent 3b6ea87 commit da49bb7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,18 +212,16 @@ export default function getCLI(context) {
command = await docker.getDockerCommand({
...tempOpts, buildContext, buildContextRef, latestRelease, extraFlags,
});
context.log(command);
if (!opts.dryRun) {
utils.runShellCommand({ command, raiseOnError: false });
await utils.runShellCommand({ command, raiseOnError: false });
}
// --------------------------------------------------------------------

command = await docker.getDockerCommand({
...opts, buildContext, buildContextRef, latestRelease, extraFlags,
});
context.log(command);
if (!opts.dryRun) {
utils.runShellCommand({ command, raiseOnError: false });
await utils.runShellCommand({ command, raiseOnError: false });
}
});
}
Expand Down

0 comments on commit da49bb7

Please sign in to comment.