fix: update environment variable mapping in deployment job

This commit is contained in:
Andras Bacsai 2025-11-06 09:21:41 +01:00
parent d21ab6e11b
commit 88aa24057b

View file

@ -3289,7 +3289,10 @@ private function add_build_env_variables_to_dockerfile()
}
if ($envs->isNotEmpty()) {
$secrets_hash = $this->generate_secrets_hash($envs);
$envs_mapped = $envs->mapWithKeys(function ($env) {
return [$env->key => $env->real_value];
});
$secrets_hash = $this->generate_secrets_hash($envs_mapped);
$dockerfile->splice(1, 0, ["ARG COOLIFY_BUILD_SECRETS_HASH={$secrets_hash}"]);
}