Skip to content

Commit

Permalink
Provides real-time output for build and push commands
Browse files Browse the repository at this point in the history
  • Loading branch information
spamoom committed May 18, 2020
1 parent 10349ad commit 6a03d21
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions app/Commands/DockerBuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,18 @@ protected function callBuild(string $tag, string $service = null): bool
], null, 1200); // 20min timeout

$process->start();

foreach ($process as $data) {
echo $data;
}

$process->wait();

if ($process->getExitCode() !== 0) {
foreach ($process as $data) {
echo $data;
}

$this->error("Unable to push all items to AWS, check the above output for reasons why.");
return false;
}

echo $process->getOutput();
return true;
}
}
10 changes: 5 additions & 5 deletions app/Commands/DockerPushCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,18 @@ protected function callPush(string $tag, string $service = null): bool
], null, 1200); // 20min timeout

$process->start();

foreach ($process as $data) {
echo $data;
}

$process->wait();

if ($process->getExitCode() !== 0) {
foreach ($process as $data) {
echo $data;
}

$this->error("Unable to push all items to AWS, check the above output for reasons why.");
return false;
}

echo $process->getOutput();
return true;
}
}

0 comments on commit 6a03d21

Please sign in to comment.