Uh oh!
There was an error while loading. Please reload this page.
allow exporting to github cache backend - #535
Conversation
74f47e8 to
6de12aeComparetonistiigi
commented
Mar 23, 2021
Added caps detection so that depends on #565 |
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6de12ae to
d7964beComparetonistiigi
commented
Mar 23, 2021
I've taken this out of draft. If the caps detection works and we are ok with the ux we can merge this and continue testing/updating the Buildkit PR. |
crazy-max
left a comment
There was a problem hiding this comment.
Ux is fine to me to start with. Thanks
JanJakes
commented
Apr 29, 2021
Is there any way to use this with https://github.com/docker/setup-buildx-action yet? Or do we need to wait when Buildx is tagged? |
Are we waiting for Is it already working somehow name: Builduses: docker/build-push-action@masterwith:
context: .file: ./Dockerfilepush: ${{ github.event_name != 'pull_request' }}tags: ${{ steps.docker_meta.outputs.tags }}labels: ${{ steps.docker_meta.outputs.labels }}cache-from: type=ghacache-to: type=gha |
crazy-max
commented
Apr 30, 2021
@JanJakes@douglasduteil We need the server-side first moby/buildkit/pull/1974
I was using a staging build to test the feature. |
cdeneen
commented
Jun 25, 2021
Does anyone have a complete example of using this, are you still required to setup the cache in an action? |
adrienjoly
commented
Jun 26, 2021
Here's how I ended up caching of our "admin-api" Docker layers, on GitHub Actions: It adds and updates the resulting Docker image to the "Packages" section of our GitHub repository. Hope this helps. |
valentijnscholten
commented
Jun 26, 2021
@adrienjoly this PR is about a new "GitHub native"cache backend being implemented that should be faster / better with regards to expiration etc. Caching to github package registry is kinda old school and slow in my experience. |
adrienjoly
commented
Jun 27, 2021
My bad, thanks for the clarification. |
Yeah, I was just looking to see the entire cache system in use in an example. @douglasduteil posted a piece of code from @crazy-max but the repo is no longer exists or is public. |
crazy-max
commented
Jun 28, 2021
Will be available when moby/buildkit#1974 is merged. |
benesch
commented
Jul 13, 2021
If anyone else is looking to give this a shot without having to build |
Thanks. Im getting: |
crazy-max
commented
Jul 13, 2021
@patroza You can test the gha cache exporter using this workflow from the official Build Push Action while waiting for buildx 0.6 and BuildKit 0.9 to be GA. |
Changes: * https://github.com/docker/buildx/releases/tag/v0.6.0 * https://github.com/docker/buildx/releases/tag/v0.6.1 * https://github.com/docker/buildx/releases/tag/v0.6.2 * https://github.com/docker/buildx/releases/tag/v0.6.3 * https://github.com/docker/buildx/releases/tag/v0.7.0 Significantly, this introduces support for GHA caches, see docker/buildx#535 (this will require separate changes). Signed-off-by: Stephen Kitt <skitt@redhat.com>
Changes: * https://github.com/docker/buildx/releases/tag/v0.6.0 * https://github.com/docker/buildx/releases/tag/v0.6.1 * https://github.com/docker/buildx/releases/tag/v0.6.2 * https://github.com/docker/buildx/releases/tag/v0.6.3 * https://github.com/docker/buildx/releases/tag/v0.7.0 Significantly, this introduces support for GHA caches, see docker/buildx#535 (this will require separate changes). Signed-off-by: Stephen Kitt <skitt@redhat.com>
Client-side support for moby/buildkit#1974
--cache-to type=gha[,scope=foo]--cache-from type=gha[,scope=foo]If called outside github environment and required
envare not present then the configuration will be skipped. Token/URL can also be passed directly in csv but I would expect only a program wrapping buildx to use that method.Signed-off-by: Tonis Tiigi tonistiigi@gmail.com