fix: PR deployments should not be distributed to 2 servers

This commit is contained in:
Andras Bacsai 2024-03-26 13:56:30 +01:00
parent 6045870398
commit 07ed550dc2

View File

@ -898,6 +898,9 @@ private function deploy_to_additional_destinations()
if ($this->application->additional_networks->count() === 0) {
return;
}
if ($this->pull_request_id !== 0) {
return;
}
$destination_ids = $this->application->additional_networks->pluck('id');
if ($this->server->isSwarm()) {
$this->application_deployment_queue->addLogEntry("Additional destinations are not supported in swarm mode.");