optics-monorepo icon indicating copy to clipboard operation
optics-monorepo copied to clipboard

Cache Docker layers and cargo workspace in Actions builds

Open yourbuddyconner opened this issue 3 years ago • 3 comments

Currently from-scratch builds of the agents take approximately 25 minutes, this can be sped up by adding a cache step to our docker build workflow.

actions/cache Rust example

yourbuddyconner avatar Aug 26 '21 16:08 yourbuddyconner

So glad you added this issue already. Had noticed this was taking a long time :)

ErinHales avatar Aug 31 '21 20:08 ErinHales

This is going to be slightly more complicated than I anticipated, details here: https://gist.github.com/UrsaDK/f90c9632997a70cfe2a6df2797731ac8

yourbuddyconner avatar Aug 31 '21 20:08 yourbuddyconner

Alternatives that would let us keep the docker/build-push action: https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md

yourbuddyconner avatar Aug 31 '21 20:08 yourbuddyconner