From 1cf4868c253028c1349c4f5a044e6d6551f4777d Mon Sep 17 00:00:00 2001 From: Skydust Date: Sat, 28 Dec 2024 14:17:24 +0100 Subject: [PATCH] Preemptively removing cache --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 1acac0d..52bd246 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -34,7 +34,7 @@ if [ -n "$INPUT_PLATFORM" ]; then fi if [ "$INPUT_PUSH_IMAGE" = "true" ]; then - DOCKER_BUILD_OPTIONS+=("--push") + DOCKER_BUILD_OPTIONS+=("--push" "--output=type=image,push=true") fi 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") fi +DOCKER_BUILD_OPTIONS+=("--rm") DOCKER_BUILD_OPTIONS+=("${INPUT_DOCKERFILE_PATH}") # shellcheck disable=SC2145 echo "Running docker buildx with options: ${DOCKER_BUILD_OPTIONS[@]}"