fix(deployment): add COOLIFY_* environment variables to Nixpacks build context for enhanced deployment configuration

This commit is contained in:
Andras Bacsai
2025-09-10 16:15:08 +02:00
parent 2c8f5415f1
commit 49a2942836

View File

@@ -1600,6 +1600,12 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
}
}
// Add COOLIFY_* environment variables to Nixpacks build context
$coolify_envs = $this->generate_coolify_env_variables();
$coolify_envs->each(function ($value, $key) {
$this->env_nixpacks_args->push("--env {$key}={$value}");
});
$this->env_nixpacks_args = $this->env_nixpacks_args->implode(' ');
}