Fix issue with sorting environment variables in ApplicationDeploymentJob.php

This commit is contained in:
Andras Bacsai 2024-04-17 12:13:44 +02:00
parent 98c2056f53
commit 10356a4376

View File

@ -767,6 +767,9 @@ private function save_environment_variables()
$envs->push("SOURCE_COMMIT=unknown");
}
}
$envs = $envs->sort(function ($a, $b) {
return strpos($a, '$') === false ? -1 : 1;
});
}
if ($envs->isEmpty()) {