fix: preview deployments with nixpacks

This commit is contained in:
Andras Bacsai 2024-01-12 08:38:08 +01:00
parent c5782252ea
commit a2f53085e5

View File

@ -738,9 +738,12 @@ private function deploy_pull_request()
$this->generate_nixpacks_confs();
}
$this->generate_compose_file();
// Needs separate preview variables
$this->generate_build_env_variables();
$this->add_build_env_variables_to_dockerfile();
if ($this->application->build_pack !== 'nixpacks') {
$this->add_build_env_variables_to_dockerfile();
}
$this->build_image();
$this->stop_running_container();
if ($this->application->destination->server->isSwarm()) {