Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 5

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,
Taylor

 

4 Replies
Community Manager
Message 2 of 5

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.

Copilot Lvl 3
Message 3 of 5

Re: GitHub Actions support for Docker BuildKit?

Thank you, @lee-dohm.  Do you know if support for BuildKit within Actions is on the roadmap?  I have been trying the new GitHub Package Registry Beta too, so it would be nice to use BuildKit with GitHub Actions + the GitHub Docker registry together.

 

[For my use case it is largely about how much faster BuildKit is for large / complex images vs building without it.]

Copilot Lvl 2
Message 4 of 5

Re: GitHub Actions support for Docker BuildKit?

I am also looking for BuildKit support

docker builds with GitHub Actions failing for my case ... 

https://github.com/xmlking/micro-starter-kit/blob/develop/Makefile#L170

 

Pilot Lvl 1
Message 5 of 5

Re: GitHub Actions support for Docker BuildKit?