Feat: add Dockerfile target support

This commit is contained in:
2025-12-09 02:09:08 +08:00
parent ea99f8e8eb
commit 27d1254961

View File

@@ -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 }}