diff --git a/build_command.sh b/build_command.sh index 613deaa..4292fc5 100644 --- a/build_command.sh +++ b/build_command.sh @@ -18,7 +18,7 @@ then -t $CI_REGISTRY_IMAGE:$UBUNTU_VER \ --platform $PLATFORMS \ --cache-from type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache \ - --cache-to type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache,mode=max \ + --cache-to type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache,mode=max,oci-mediatypes=true \ --push --provenance false else docker buildx build . \ @@ -30,7 +30,7 @@ else -t $CI_REGISTRY_IMAGE:latest \ --platform $PLATFORMS \ --cache-from type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache \ - --cache-to type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache,mode=max \ + --cache-to type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache,mode=max,oci-mediatypes=true \ --push --provenance false fi