fix(core): update
This commit is contained in:
parent
1a25341232
commit
87f55773bd
@ -74,7 +74,6 @@ export class Qenv {
|
|||||||
try {
|
try {
|
||||||
envYml = plugins.smartfile.fs.toObjectSync(this.envFilePathAbsolute);
|
envYml = plugins.smartfile.fs.toObjectSync(this.envFilePathAbsolute);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log("env file couldn't be found at " + this.envFilePathAbsolute);
|
|
||||||
envYml = {};
|
envYml = {};
|
||||||
}
|
}
|
||||||
let envVar: string;
|
let envVar: string;
|
||||||
@ -129,12 +128,16 @@ export class Qenv {
|
|||||||
|
|
||||||
let chosenVar: string = null;
|
let chosenVar: string = null;
|
||||||
if (envVar) {
|
if (envVar) {
|
||||||
|
this.logger.log('ok', `found ${requiredEnvVar} as environment variable`);
|
||||||
chosenVar = envVar;
|
chosenVar = envVar;
|
||||||
} else if (envFileVar) {
|
} else if (envFileVar) {
|
||||||
|
this.logger.log('ok', `found ${requiredEnvVar} as env.yml variable`);
|
||||||
chosenVar = envFileVar;
|
chosenVar = envFileVar;
|
||||||
} else if (dockerSecret) {
|
} else if (dockerSecret) {
|
||||||
|
this.logger.log('ok', `found ${requiredEnvVar} as docker secret`);
|
||||||
chosenVar = dockerSecret;
|
chosenVar = dockerSecret;
|
||||||
} else if (dockerSecretJson) {
|
} else if (dockerSecretJson) {
|
||||||
|
this.logger.log('ok', `found ${requiredEnvVar} as docker secret.json`);
|
||||||
chosenVar = dockerSecretJson;
|
chosenVar = dockerSecretJson;
|
||||||
}
|
}
|
||||||
return chosenVar;
|
return chosenVar;
|
||||||
|
Loading…
Reference in New Issue
Block a user