Skip to content

Commit a68b0f5

Browse files
committed
Update Makefile with fallback for cdk-synth target
1 parent 71e939a commit a68b0f5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,16 @@ cdk-deploy: guard-stack_name
8484
--context slackSigningSecret=$$SLACK_SIGNING_SECRET
8585

8686
cdk-synth:
87+
ACCOUNT_ID="$${ACCOUNT_ID:-123456789012}" && \
88+
VERSION_NUMBER="$${VERSION_NUMBER:-1.0.0}" && \
89+
COMMIT_ID="$${COMMIT_ID:-latest}" && \
8790
npx cdk synth \
8891
--quiet \
8992
--app "npx ts-node --prefer-ts-exts packages/cdk/bin/EpsAssistMeApp.ts" \
9093
--context accountId=$$ACCOUNT_ID \
9194
--context stackName=epsam \
92-
--context versionNumber=undefined \
93-
--context commitId=undefined \
95+
--context versionNumber=$$VERSION_NUMBER \
96+
--context commitId=$$COMMIT_ID \
9497
--context logRetentionInDays=30 \
9598
--context slackBotToken=dummy \
9699
--context slackSigningSecret=dummy

0 commit comments

Comments
 (0)