Skip to content

Add support for caching with Github Actions cache#159

Open
orf wants to merge 1 commit intouraimo:masterfrom
orf:support-gha-cache
Open

Add support for caching with Github Actions cache#159
orf wants to merge 1 commit intouraimo:masterfrom
orf:support-gha-cache

Conversation

@orf
Copy link
Copy Markdown

@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
Copy Markdown

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