Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out CircleCI caching to speed builds #16

Closed
jonrh opened this issue Sep 21, 2017 · 1 comment
Closed

Figure out CircleCI caching to speed builds #16

jonrh opened this issue Sep 21, 2017 · 1 comment

Comments

@jonrh
Copy link
Owner

jonrh commented Sep 21, 2017

At the time of writing I have successfully set up CircleCI to automatically deploy static files to S3 on AWS and to invalidate the CloudFront cache. The build takes about 2 minutes but could be improved in a few ways.

  1. First I'm manually installing awscli with a bunch of overhead. It may be that CircleCI is clever enough to use that as a cache but maybe not.

  2. The big gain is going to be in node_modules/. I tried to cache on the yarn.lock file but it didn't seem to work (see commit 8a58059). In related commits I had it set up for package.json. Maybe that's good enough.

Here is an example config:
https://github.com/CircleCI-Public/circleci-demo-javascript-express/blob/master/.circleci/config.yml

Overall I'm not too concerned about this at the moment, 2 minutes is fine.

@jonrh
Copy link
Owner Author

jonrh commented Oct 28, 2020

Website is now automatically deployed with Vercel so there is no need for CircleCI anymore. See #29.

@jonrh jonrh closed this as completed Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant