refs #2611. Fixed create instance Image in git
testing/ogcore-api/pipeline/head There was a failure building this commit
Details
testing/ogcore-api/pipeline/head There was a failure building this commit
Details
parent
9b18d253f3
commit
4c3b0fd0cd
|
@ -73,14 +73,20 @@ readonly class ImageProcessor implements ProcessorInterface
|
|||
if ($data->selectedImage) {
|
||||
$response = $this->createImageActionController->__invoke($data->queue, $data->selectedImage->getEntity(), $data->partition->getEntity(), $data->client->getEntity(), $data->gitRepository);
|
||||
} else {
|
||||
|
||||
$image = $data->createOrUpdateEntity($entity);
|
||||
$this->validator->validate($image);
|
||||
|
||||
if ($data->type === 'monolithic') {
|
||||
$this->validator->validate($image);
|
||||
}
|
||||
|
||||
if ($this->kernel->getEnvironment() !== 'test') {
|
||||
$response = $this->createImageActionController->__invoke($data->queue, $image, null, null, $data->gitRepository);
|
||||
}
|
||||
|
||||
$this->imageRepository->save($image);
|
||||
|
||||
if ($data->type === 'monolithic') {
|
||||
$this->imageRepository->save($image);
|
||||
}
|
||||
}
|
||||
|
||||
if ($response instanceof JsonResponse && $response->getStatusCode() >= 400) {
|
||||
|
|
Loading…
Reference in New Issue