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;
|
let runtimeSecretsDir: string | undefined;
|
||||||
const getRuntimeSecretPath = async (filename: string) => {
|
const getRuntimeSecretPath = async (filename: string) => {
|
||||||
runtimeSecretsDir = await createRuntimeSecretsDir();
|
if (!runtimeSecretsDir) {
|
||||||
env._RUNTIME_SECRETS_DIR = runtimeSecretsDir;
|
runtimeSecretsDir = await createRuntimeSecretsDir();
|
||||||
|
env._RUNTIME_SECRETS_DIR = runtimeSecretsDir;
|
||||||
|
}
|
||||||
return runtimeSecretPath(runtimeSecretsDir, filename);
|
return runtimeSecretPath(runtimeSecretsDir, filename);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue