The downside of this approach is that TravisCI can take as long as ten minutes
for a trivial change, since the
npm install phase on the build container
setup is so slow at ~70s.
Only way I can think of speeding it up is to create a Docker image with the
node+aws+gatsbyjs pre-installed in order to just
gatsby build after pulling the image. Assuming that pulling an image
should be faster than a fragile
npm install but then it would be a burden to
maintain the Docker image.
Though it may be a wasted effort, since AWS Cloudfront can take several minutes for an invalidation to propagate!
Devops at Spuul. Any tips or suggestions? Reach out!