fix: PR deployments should not be distributed to 2 servers
This commit is contained in:
parent
6045870398
commit
07ed550dc2
@ -898,6 +898,9 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
|
|||||||
if ($this->application->additional_networks->count() === 0) {
|
if ($this->application->additional_networks->count() === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if ($this->pull_request_id !== 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$destination_ids = $this->application->additional_networks->pluck('id');
|
$destination_ids = $this->application->additional_networks->pluck('id');
|
||||||
if ($this->server->isSwarm()) {
|
if ($this->server->isSwarm()) {
|
||||||
$this->application_deployment_queue->addLogEntry("Additional destinations are not supported in swarm mode.");
|
$this->application_deployment_queue->addLogEntry("Additional destinations are not supported in swarm mode.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user