Skip to content

Commit 74188de

Browse files
author
Dipanshu Sharma
committed
build(circle-ci): provide valid distribution id through env
1 parent d1f7161 commit 74188de

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.circleci/config.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@ commands:
3636
cloudfront-id:
3737
description: AWS CloudFront ID
3838
type: string
39-
default: E2IU0JVSGDL1DE
4039
steps:
4140
- aws-cli/install
4241
- run:
4342
name: Create AWS CloudFront invalidation
44-
command: aws cloudfront create-invalidation --distribution-id << parameters.cloudfront-id >> --paths "/*"
43+
command: aws cloudfront create-invalidation --distribution-id ${AWS_DISTRIBUTION_ID} --paths "/*"
4544

4645
jobs:
4746
install:
@@ -229,7 +228,6 @@ jobs:
229228
cloudfront-id:
230229
description: AWS CloudFront ID
231230
type: string
232-
default: E2IU0JVSGDL1DE
233231
steps:
234232
- checkout
235233
- restore_workspace
@@ -268,10 +266,10 @@ jobs:
268266
from: ~/react-widgets/packages/node_modules/@webex/widget-demo/dist
269267
to: s3://${AWS_BUCKET}/widget-demo/archives/${VERSION_NUMBER}
270268
- when:
271-
condition: << parameters.cloudfront-id >>
269+
condition: ${AWS_DISTRIBUTION_ID}
272270
steps:
273271
- aws-cloudfront-invalidation:
274-
cloudfront-id: << parameters.cloudfront-id >>
272+
cloudfront-id: ${AWS_DISTRIBUTION_ID}
275273

276274
promote_alpha_to_beta:
277275
executor: main-executor

0 commit comments

Comments
 (0)