fix(core): update environment variable generation logic in ApplicationDeploymentJob to handle different build packs
This commit is contained in:
parent
bae8b9a938
commit
c3c032ebbd
1 changed files with 6 additions and 2 deletions
|
|
@ -2288,8 +2288,12 @@ private function start_by_compose_file()
|
||||||
|
|
||||||
private function generate_build_env_variables()
|
private function generate_build_env_variables()
|
||||||
{
|
{
|
||||||
$variables = collect($this->nixpacks_plan_json->get('variables'));
|
if ($this->application->build_pack === 'nixpacks') {
|
||||||
$variables->put('SOURCE_COMMIT', $this->commit);
|
$variables = collect($this->nixpacks_plan_json->get('variables'));
|
||||||
|
} else {
|
||||||
|
$this->generate_env_variables();
|
||||||
|
$variables = collect([])->merge($this->env_args);
|
||||||
|
}
|
||||||
|
|
||||||
$this->build_args = $variables->map(function ($value, $key) {
|
$this->build_args = $variables->map(function ($value, $key) {
|
||||||
$value = escapeshellarg($value);
|
$value = escapeshellarg($value);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue