Skip to content

Commit

Permalink
updated buildpsec file for staging
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchiramoitra committed Nov 12, 2020
1 parent 7bcf3af commit 944574b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildspec.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ phases:
- npm install --unsafe-perm
- npm run prodTest && npm test
- 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
- sed 's|//# sourceMappingURL=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-staging.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-staging.js --cache-control max-age=3600 --acl public-read
- aws s3 cp dist/rudder-analytics.min.js s3://$S3_BUCKET_NAME/v1/rudder-analytics-staging.min.js --cache-control max-age=3600 --acl public-read
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/v1/rudder-analytics-staging.min.js"
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/rudder-analytics-staging.min.js"
artifacts:
Expand Down

0 comments on commit 944574b

Please sign in to comment.