Reverting cache-from as it wasn't the cause

This commit is contained in:
2024-12-06 19:58:49 +01:00
parent 0979fb71f6
commit 4e98070fac

View File

@@ -38,7 +38,7 @@ fi
if [ "$INPUT_PULL_CACHE" = "true" ]; then if [ "$INPUT_PULL_CACHE" = "true" ]; then
IMAGE_CACHE_NAME="${IMAGE_NAME%%:*}:build-cache" IMAGE_CACHE_NAME="${IMAGE_NAME%%:*}:build-cache"
#DOCKER_BUILD_OPTIONS+=("--cache-from" "type=registry,ref=${IMAGE_CACHE_NAME}") DOCKER_BUILD_OPTIONS+=("--cache-from" "type=registry,ref=${IMAGE_CACHE_NAME}")
DOCKER_BUILD_OPTIONS+=("--cache-to" "type=registry,image-manifest=true,oci-mediatypes=true,ref=${IMAGE_CACHE_NAME},mode=max") DOCKER_BUILD_OPTIONS+=("--cache-to" "type=registry,image-manifest=true,oci-mediatypes=true,ref=${IMAGE_CACHE_NAME},mode=max")
echo "Using docker image cache ${IMAGE_CACHE_NAME}" echo "Using docker image cache ${IMAGE_CACHE_NAME}"
fi fi