Skip to content

Commit 7183d07

Browse files
committed
Fix gitlab-ci build status
1 parent 8bcc5a1 commit 7183d07

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.DS_Store

6 KB
Binary file not shown.

src/Automate/Command/DeployCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
5858

5959
$workflow = new Deployer($project, $platform, $logger);
6060

61-
if ($workflow->deploy($input->getArgument('gitRef'))) {
62-
$io->success('All is OK');
61+
if (!$workflow->deploy($input->getArgument('gitRef'))) {
62+
throw new \RuntimeException('Deployment failed');
6363
}
64+
65+
$io->success('All is OK');
6466
}
6567

6668
private function getServersList(Platform $platform)

0 commit comments

Comments
 (0)