From 74cd35ab176591ff0bf8a78a6eeeefd4ac1ab2c9 Mon Sep 17 00:00:00 2001 From: Ameer Hamza Date: Wed, 22 Mar 2023 12:40:58 +0800 Subject: [PATCH] Trying to upload build_cache image with oci-mediatypes=true. Reason: without this option, the image size and manifest are not displayed on Gitlab. Trying to see if this option will fix the issue. --- build_command.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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