Feat: add Dockerfile target support
This commit is contained in:
@@ -12,6 +12,10 @@ inputs:
|
||||
description: "The file location of Dockerfile"
|
||||
required: false
|
||||
default: ./Dockerfile
|
||||
target:
|
||||
description: "The target in Dockerfile"
|
||||
required: false
|
||||
default: ''
|
||||
push:
|
||||
description: "Whether the container will be pushed or not"
|
||||
required: false
|
||||
@@ -93,6 +97,7 @@ runs:
|
||||
with:
|
||||
context: ${{ inputs.context }}
|
||||
file: ${{ inputs.file }}
|
||||
target: ${{ inputs.target }}
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
|
||||
Reference in New Issue
Block a user