Skip to content

Commit 9800b99

Browse files
authored
Merge pull request #118 from Staffbase/feature/docker-build-outputs
2 parents fb358dd + f986888 commit 9800b99

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ inputs:
4343
description: "Generate provenance attestation for the build"
4444
required: false
4545
default: 'false'
46+
docker-build-outputs:
47+
description: "Custom output destinations (e.g., type=registry,push=true,compression=zstd,force-compression=true). When set, this replaces the default push behavior - include push=true if pushing is desired."
48+
required: false
4649
docker-disable-retagging:
4750
description: 'Disable retagging of existing images'
4851
required: false
@@ -167,7 +170,7 @@ runs:
167170
uses: docker/build-push-action@v6
168171
with:
169172
context: ${{ inputs.working-directory }}
170-
push: ${{ steps.preparation.outputs.push }}
173+
push: ${{ inputs.docker-build-outputs == '' && steps.preparation.outputs.push || 'false' }}
171174
file: ${{ inputs.working-directory }}/${{ inputs.docker-file }}
172175
target: ${{ inputs.docker-build-target }}
173176
build-args: ${{ inputs.docker-build-args }}
@@ -178,6 +181,7 @@ runs:
178181
cache-from: type=gha
179182
cache-to: type=gha,mode=max
180183
provenance: ${{ inputs.docker-build-provenance }}
184+
outputs: ${{ inputs.docker-build-outputs }}
181185

182186
- name: Retag Existing Image
183187
id: docker_retag

0 commit comments

Comments
 (0)