Adding logs

This commit is contained in:
2024-12-06 12:52:17 +01:00
parent c3c1821286
commit b0c13648ac
2 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ fi;
DOCKER_BUILD_OPTIONS=("--progress" "plain" "-t" "$IMAGE_NAME")
if [ -n "$INPUT_PLATFORM" ]; then
DOCKER_BUILD_OPTIONS+=("--platform" "$INPUT_PLATFORM")
DOCKER_BUILD_OPTIONS+=("--platform" "$INPUT_PLATFORM" "--pull")
fi
if [ "$INPUT_PUSH_IMAGE" = "true" ]; then
@@ -39,7 +39,7 @@ fi
if [ "$INPUT_PULL_CACHE" = "true" ]; then
IMAGE_CACHE_NAME="${IMAGE_NAME%%:*}:build-cache"
DOCKER_BUILD_OPTIONS+=("--cache-from" "type=registry,ref=${IMAGE_CACHE_NAME}")
DOCKER_BUILD_OPTIONS+=("--cache-to" "type=registry,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}"
fi