Commit ae3f1d94 authored by Jon Pugh's avatar Jon Pugh

Always return the exit code in execute();

parent 421e49a3
......@@ -133,7 +133,7 @@ class HttpApacheDockerService extends HttpApacheService
->success('Built new Docker image for Apache: ' . $this->containerTag)
->failure('Unable to build docker container with tag: ' . $this->containerTag)
->execute(function () use ($provision, $build_dir) {
$this->getProvision()->getTasks()->taskDockerBuild($build_dir)
return $this->getProvision()->getTasks()->taskDockerBuild($build_dir)
->tag($this->containerTag)
->option(
'-f',
......@@ -146,6 +146,7 @@ class HttpApacheDockerService extends HttpApacheService
->option('--build-arg', "AEGIR_UID=".posix_getuid())
->silent(!$this->getProvision()->getOutput()->isVerbose())
->run()
->getExitCode()
;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment