This commit is contained in:
Andras Bacsai
2023-06-19 15:43:53 +02:00
parent bb3a1d2f16
commit 8910d5a65d
4 changed files with 33 additions and 25 deletions

View File

@@ -318,16 +318,16 @@ COPY --from=$this->build_image_name /app/{$this->application->publish_directory}
dispatch(new InstanceProxyCheckJob());
}
queue_next_deployment($this->application);
if ($status === ProcessStatus::ERROR->value) {
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, $this->pull_request_id)
new DeployedSuccessfullyNotification($this->application, $this->deployment_uuid)
);
}
if ($status === ProcessStatus::ERROR->value) {
Notification::send(
$this->application->environment->project->team,
new DeployedWithErrorNotification($this->application, $this->deployment_uuid, $this->preview)
);
}
}