Skip to content

Commit

Permalink
test prod build
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan-rudder committed Jun 10, 2020
1 parent b1434f9 commit abbf9b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions buildspec.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +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
- 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 s3 cp dist/rudder-analytics.min.js s3://$S3_BUCKET_NAME/test.min.js --cache-control max-age=3600 --acl public-read
- aws s3 cp dist/rudder-analytics.min.js s3://$S3_BUCKET_NAME/v1/test.min.js --cache-control max-age=3600 --acl public-read
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/v1/test.min.js"
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/test.min.js"
artifacts:
files:
- "**/*"

0 comments on commit abbf9b3

Please sign in to comment.