gwu-libraries / scholarspace-hyrax

Hyrax-based repository for GW ETDs and other original content
https://scholarspace.library.gwu.edu/
MIT License
9 stars 4 forks source link

Investigate docker cacheing on CI build #521

Closed dolsysmith closed 8 months ago

dolsysmith commented 8 months ago

The CI Action currently builds the Docker images from scratch on every run. I think we might be able to conserve compute cycles and save time by using docker buildx bake to build the images within the Action, since it seems as though buildx can output the cached layers to the GitHub registry:

https://stackoverflow.com/questions/61491484/how-to-cache-docker-compose-build-inside-github-action

https://docs.docker.com/reference/cli/docker/buildx/build/#load

https://docs.docker.com/reference/cli/docker/buildx/bake/

Not sure, but it's worth investigating.

dolsysmith commented 8 months ago

Resolved by new task, ci-cache.yml.