Preemptively removing cache

This commit is contained in:
2024-12-28 14:17:24 +01:00
parent 349fc1d891
commit 1cf4868c25

View File

@@ -34,7 +34,7 @@ if [ -n "$INPUT_PLATFORM" ]; then
fi fi
if [ "$INPUT_PUSH_IMAGE" = "true" ]; then if [ "$INPUT_PUSH_IMAGE" = "true" ]; then
DOCKER_BUILD_OPTIONS+=("--push") DOCKER_BUILD_OPTIONS+=("--push" "--output=type=image,push=true")
fi fi
if [ "$INPUT_PULL_CACHE" = "true" ]; then if [ "$INPUT_PULL_CACHE" = "true" ]; then
@@ -48,6 +48,7 @@ if [ -n "$INPUT_EXPORT_TAR" ]; then
DOCKER_BUILD_OPTIONS+=("--output" "type=docker,dest=$INPUT_EXPORT_TAR") DOCKER_BUILD_OPTIONS+=("--output" "type=docker,dest=$INPUT_EXPORT_TAR")
fi fi
DOCKER_BUILD_OPTIONS+=("--rm")
DOCKER_BUILD_OPTIONS+=("${INPUT_DOCKERFILE_PATH}") DOCKER_BUILD_OPTIONS+=("${INPUT_DOCKERFILE_PATH}")
# shellcheck disable=SC2145 # shellcheck disable=SC2145
echo "Running docker buildx with options: ${DOCKER_BUILD_OPTIONS[@]}" echo "Running docker buildx with options: ${DOCKER_BUILD_OPTIONS[@]}"