fix: one secrets temp dir per env building
This commit is contained in:
parent
0fa4e05ba0
commit
7fd7d5a61c
1 changed files with 4 additions and 2 deletions
|
|
@ -32,8 +32,10 @@ export const buildEnv = async (
|
|||
};
|
||||
let runtimeSecretsDir: string | undefined;
|
||||
const getRuntimeSecretPath = async (filename: string) => {
|
||||
runtimeSecretsDir = await createRuntimeSecretsDir();
|
||||
env._RUNTIME_SECRETS_DIR = runtimeSecretsDir;
|
||||
if (!runtimeSecretsDir) {
|
||||
runtimeSecretsDir = await createRuntimeSecretsDir();
|
||||
env._RUNTIME_SECRETS_DIR = runtimeSecretsDir;
|
||||
}
|
||||
return runtimeSecretPath(runtimeSecretsDir, filename);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue