Skip to content

Commit

Permalink
add oci-mediatypes=true to build command when caching images
Browse files Browse the repository at this point in the history
  • Loading branch information
AnttiRae committed Mar 1, 2024
1 parent 409106b commit 4e73594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kolga/libs/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def build_stage(
if not disable_cache:
cache_to = self.create_cache_tag(postfix=stage)
logger.info(title=f"\t ℹ️ Cache to: {cache_to}")
build_command.append(f"--cache-to=type=registry,ref={cache_to},mode=max")
build_command.append(f"--cache-to=type=registry,ref={cache_to},mode=max,oci-mediatypes=true,image-manifest=true")

for cache_tag in self.get_cache_tags():
logger.info(title=f"\t ℹ️ Cache from: {cache_tag}")
Expand Down

0 comments on commit 4e73594

Please sign in to comment.