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

Add support for caching with Github Actions cache #159

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

orf
Copy link

@orf orf commented Dec 29, 2024

This MR adds support for caching with Github Actions, rather than pulling/pushing the image to a registry.

GHA cache is quicker and is integrated with Docker buildx.

The downside is that we need to use the docker setup buildx action, because adding this to the shell script seems somewhat complex?

You can see the caches on my fork.

Screenshot 2024-12-29 at 11 15 08

@covers1624
Copy link

I really like this idea, it would speed up my own builds quite a lot.

FWIW, You can switch the action to using composite steps, and pre-install docker-buildx, instead of requiring that its installed externally. There are some docs on doing this over here: https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#runsstepsuses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants