Skip to content

Commit

Permalink
pushing everything into build
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan-rudder committed Jun 10, 2020
1 parent c5e3775 commit 5946bcd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions buildspec.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ phases:
- npm run buildProdBrowser
- sed 's|rudder-analytics.min.js.map|https://cdn.rudderlabs.com/rudder-analytics.min.js.map|' dist/rudder-analytics.min.js > dist/prod.js
- mv dist/prod.js dist/rudder-analytics.min.js
post_build:
commands:
- aws s3 cp dist/rudder-analytics.min.js s3://$S3_BUCKET_NAME/rudder-analytics.min.js --cache-control max-age=3600 --acl public-read
artifacts:
files:
Expand Down
4 changes: 1 addition & 3 deletions buildspec.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ phases:
- npm run buildProdBrowser
- sed 's|rudder-analytics.min.js.map|https://cdn.rudderlabs.com/rudder-analytics.min.js.map|' dist/rudder-analytics.min.js > dist/prod.js
- mv dist/prod.js dist/rudder-analytics.min.js
post_build:
commands:
- aws s3 cp dist/rudder-analytics.min.js s3://$S3_BUCKET_NAME/rudder-analytics.min.js --cache-control max-age=3600 --acl public-read
- aws s3 cp dist/rudder-analytics.min.js s3://$S3_BUCKET_NAME/v1/rudder-analytics.min.js --cache-control max-age=3600 --acl public-read
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/v1/rudder-analytics.min.js"
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/rudder-analytics.min.js"
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/rudder-analytics.min.js"
artifacts:
files:
- "**/*"

0 comments on commit 5946bcd

Please sign in to comment.