Refactor ApplicationDeploymentJob to conditionally notify team on DeploymentSuccess
This commit is contained in:
parent
2b74ca2746
commit
fbf64f8037
@ -1965,9 +1965,12 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf");
|
|||||||
if (!$this->only_this_server) {
|
if (!$this->only_this_server) {
|
||||||
$this->deploy_to_additional_destinations();
|
$this->deploy_to_additional_destinations();
|
||||||
}
|
}
|
||||||
|
if (!isCloud()) {
|
||||||
|
// TODO: turn off until we have a better solution
|
||||||
$this->application->environment->project->team?->notify(new DeploymentSuccess($this->application, $this->deployment_uuid, $this->preview));
|
$this->application->environment->project->team?->notify(new DeploymentSuccess($this->application, $this->deployment_uuid, $this->preview));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function failed(Throwable $exception): void
|
public function failed(Throwable $exception): void
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user