diff --git a/src/cli.js b/src/cli.js index e1ee3b6..ba71073 100755 --- a/src/cli.js +++ b/src/cli.js @@ -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 }); } }); }