rails-lambda / lamby

🐑🛤 Simple Rails & AWS Lambda Integration
https://lamby.cloud
MIT License
602 stars 29 forks source link

GitHub Actions Caching #109

Closed metaskills closed 1 year ago

metaskills commented 3 years ago

So @vlaaaaaaad made this tweet how GitHub Actions now has great support for caching (https://twitter.com/iamvlaaaaaaad/status/1421529670353408001)

For us this is not likely a two line change since we use Docker in Docker. However, I wonder if we can share the right directories and take advantage of this?

metaskills commented 3 years ago

Useful Resources:

metaskills commented 3 years ago

Not sure this will for us without having to not use sam build and move a lot of things around to accommodate that since this action (https://github.com/docker/build-push-action) runs docker from the action and expects to build and push.

synth commented 2 years ago

Would love this. The majority of the build time is getting the ruby image.

That said, it seems the new school way AWS wants us to do this with sam build is using AWS SAM Accelerate

metaskills commented 2 years ago

Right, but I thought that was for Zip vs. Image format. Do you know? I have not looked.

synth commented 2 years ago

I'm not too sure. The documentation is sparse. The tutorial uses zip not image. I wonder if we can simply add the --cached to sam build if that would work. I can try later next week.

References I found:

metaskills commented 1 year ago

Done here, both for packages and devcontainer:

synth commented 1 year ago

Ah-may-zing! Thank you!