Skip to content

Commit

Permalink
Merge pull request #52 from syfxlin/develop
Browse files Browse the repository at this point in the history
fix(pack): Load env failed
  • Loading branch information
syfxlin authored Jan 13, 2024
2 parents 9518099 + 4654827 commit 0e473da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/service/pack.context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class PackContext<Config extends ServiceConfig = ServiceConfig> {
};

if (config.build_args || config.secrets || config.labels) {
const dotenvs = await dotenv.load({ examplePath: undefined, defaultsPath: undefined });
const dotenvs = await dotenv.load({ examplePath: null, defaultsPath: null });
const secrets = await this.depker.cfg.secret();
if (config.build_args) {
for (const [key, val] of Object.entries(config.build_args)) {
Expand Down Expand Up @@ -390,7 +390,7 @@ export class PackContext<Config extends ServiceConfig = ServiceConfig> {

// secrets
if (config.secrets || config.labels) {
const dotenvs = await dotenv.load({ examplePath: undefined, defaultsPath: undefined });
const dotenvs = await dotenv.load({ examplePath: null, defaultsPath: null });
const secrets = await this.depker.cfg.secret();
if (config.secrets) {
for (const [key, val] of Object.entries(config.secrets)) {
Expand Down

0 comments on commit 0e473da

Please sign in to comment.