add cache-key nixpacks

This commit is contained in:
Andras Bacsai 2023-11-01 21:05:24 +01:00
parent 658d608f55
commit aab122d97e

View File

@ -705,7 +705,7 @@ private function generate_nixpacks_confs()
private function nixpacks_build_cmd()
{
$this->generate_env_variables();
$nixpacks_command = "nixpacks build --no-cache -o {$this->workdir} {$this->env_args} --no-error-without-start";
$nixpacks_command = "nixpacks build --cache-key '{$this->application->uuid}' -o {$this->workdir} {$this->env_args} --no-error-without-start";
if ($this->application->build_command) {
$nixpacks_command .= " --build-cmd \"{$this->application->build_command}\"";
}