Skip to content

Commit 73365bf

Browse files
authored
feat: remove base image after building image (#131)
This frees additional space on the runner, which is especially useful when using build-chunked-oci.
1 parent 17bffb4 commit 73365bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ runs:
327327
BB_SQUASH: ${{ inputs.squash }}
328328
BB_BUILD_CHUNKED_OCI: ${{ inputs.build_chunked_oci }}
329329
BB_BUILD_CHUNKED_OCI_MAX_LAYERS: ${{ inputs.max_layers }}
330+
BB_BUILD_REMOVE_BASE_IMAGE: "true"
330331
BB_RECHUNK: ${{ inputs.rechunk }}
331332
BB_BUILD_RECHUNK_CLEAR_PLAN: ${{ inputs.rechunk_clear_plan }}
332333
RECIPE_PATH: ${{ steps.build_vars.outputs.recipe_path }}
@@ -341,6 +342,7 @@ runs:
341342
342343
if [ "${BB_BUILD_CHUNKED_OCI}" = "false" ]; then
343344
unset BB_BUILD_CHUNKED_OCI_MAX_LAYERS
345+
unset BB_BUILD_REMOVE_BASE_IMAGE
344346
fi
345347
346348
RUN_SUDO=""

0 commit comments

Comments
 (0)