fix: update environment variable mapping in deployment job
This commit is contained in:
parent
d21ab6e11b
commit
88aa24057b
1 changed files with 4 additions and 1 deletions
|
|
@ -3289,7 +3289,10 @@ private function add_build_env_variables_to_dockerfile()
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($envs->isNotEmpty()) {
|
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}"]);
|
$dockerfile->splice(1, 0, ["ARG COOLIFY_BUILD_SECRETS_HASH={$secrets_hash}"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue