Preemptively removing cache
This commit is contained in:
@@ -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[@]}"
|
||||
|
||||
Reference in New Issue
Block a user