Skip to content

Commit

Permalink
Update StackEnv.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
baoduy committed Mar 6, 2024
1 parent 9d4e26c commit 5ba1d25
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Common/StackEnv.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import * as pulumi from '@pulumi/pulumi';
import { getValue } from './ConfigHelper';

console.log(
'Environments\n',
Object.keys(process.env)
.filter((key) => key.startsWith('PULUMI_'))
.map((key) => `\t${key}: ${process.env[key]}`)
.join('\n')
);

export const isDryRun = Boolean(process.env.PULUMI_NODEJS_DRY_RUN);
export const organization =
process.env.PULUMI_NODEJS_ORGANIZATION ??
getValue('organization') ??
pulumi.getOrganization().toLowerCase();
export const organization = process.env.PULUMI_NODEJS_ORGANIZATION!;
export const projectName =
process.env.PULUMI_NODEJS_PROJECT ?? pulumi.getProject().toLowerCase();
export const stack =
Expand Down

0 comments on commit 5ba1d25

Please sign in to comment.