Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 2

GitHub Actions support for Docker BuildKit?

Hello - I'm wondering if it's possible to use the new Docker BuildKit feature on GitHub Actions?  [BuildKit makes most builds faster and improves caching significantly.]


I tell Docker to use BuildKit locally by running:

$ DOCKER_BUILDKIT=1 docker build ...

but I don't see a way to provide this or as an environment variable at build time on GitHub Actions.


I found a page in the Actions docs for the runtime environment, but did not see an analogous page for the build environment.


Thank you,


1 Reply
Community Manager
Message 2 of 2

Re: GitHub Actions support for Docker BuildKit?

If you want full control over how your Docker image is built, you can use a Docker image stored in a public registry using either of the `docker://` specifier forms in the `uses` field of your Action block.


Let us know if you have more questions.