Skip to content

Commit 5d7f809

Browse files
committed
Support build target for dockerfile
- Adds a `target` input - Passes the value to the underlying [`docker/build-push-action`](https://github.com/docker/build-push-action/blob/v2/action.yml#L83) action
1 parent e4d9b2b commit 5d7f809

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ inputs:
2525
registry:
2626
description: 'Docker registry'
2727
required: true
28+
target:
29+
description: "Sets the target stage to build"
30+
required: false
31+
default: ''
2832
login:
2933
description: 'Docker login'
3034
required: false
@@ -109,4 +113,5 @@ runs:
109113
cache-from: type=gha
110114
cache-to: type=gha,mode=max
111115
tags: ${{ steps.meta.outputs.tags }}
116+
target: ${{ inputs.target }}
112117
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)