This commit is contained in:
Andras Bacsai committed 2023-06-19 15:34:39 +02:00
1 parent 6d2b88c31f
commit bb3a1d2f16
5 files changed
+42 -15

No files matched your search

+8 -2
View File
@@ -319,10 +319,16 @@ COPY --from=$this->build_image_name /app/{$this->application->publish_directory}
}
queue_next_deployment($this->application);
if ($status === ProcessStatus::ERROR->value) {
Notification::send($this->application->environment->project->team, new DeployedWithErrorNotification($this->application, $this->deployment_uuid));
Notification::send(
$this->application->environment->project->team,
new DeployedWithErrorNotification($this->application, $this->deployment_uuid, $this->pull_request_id)
);
}
if ($status === ProcessStatus::FINISHED->value) {
Notification::send($this->application->environment->project->team, new DeployedSuccessfullyNotification($this->application, $this->deployment_uuid));
Notification::send(
$this->application->environment->project->team,
new DeployedSuccessfullyNotification($this->application, $this->deployment_uuid, $this->pull_request_id)
);
}
}
private function execute_in_builder(string $command)