From 22a286ccbce9365188175a5ad4075a2f6b5402f6 Mon Sep 17 00:00:00 2001 From: Lea Waller Date: Fri, 6 Dec 2024 04:29:26 +0100 Subject: [PATCH] Push build cache with image manifest Fix "manifest blob unknown" error when pushing buildcache as per https://github.com/docker/buildx/issues/271#issuecomment-1936711759 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe73c15..a70d026 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,7 +67,7 @@ jobs: cache_from = f"type=registry,ref={path}:buildcache" output = dict( cache_from=cache_from, - cache_to=f"{cache_from},compression=zstd,mode=max" if push else "", + cache_to=f"{cache_from},compression=zstd,mode=max,image-manifest=true" if push else "", labels=[ f'org.opencontainers.image.created="{pushed_at}"', 'org.opencontainers.image.authors="Lea Waller "',