Commit 2023cf74 authored by Jon Pugh's avatar Jon Pugh

Properly return an exit code when building docker image.

parent 5351879d
......@@ -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,7 +146,7 @@ class HttpApacheDockerService extends HttpApacheService
->option('--build-arg', "AEGIR_UID=".posix_getuid())
->silent(!$this->getProvision()->getOutput()->isVerbose())
->run()
;
->getExitCode();
});
// Docker run
......
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