Skip to content

Commit 2335ceb

Browse files
committed
Add 'load' input and default to false
If there are no steps following the build that require the image, the load is pointless and may just delay the build with no real benefit.
1 parent 89b3247 commit 2335ceb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

actions/build-image/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ inputs:
3333
description: Whether to push images to registry
3434
required: false
3535
default: "false"
36+
load:
37+
description: Whether to load the built image into the Docker engine
38+
required: false
39+
default: "false"
3640
cache-gha:
3741
description: Whether to use GitHub Actions cache for build caching
3842
required: false
@@ -226,7 +230,7 @@ runs:
226230
file: ${{ steps.options.outputs.file }}
227231
pull: true
228232
push: ${{ inputs.push == 'true' }}
229-
load: ${{ inputs.push != 'true' }}
233+
load: ${{ inputs.load == 'true' }}
230234
build-args: ${{ steps.options.outputs.build_args }}
231235
tags: ${{ steps.options.outputs.tags }}
232236
outputs: ${{ steps.options.outputs.output }}

0 commit comments

Comments
 (0)