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