feat: add target to image-build (#822)

This commit is contained in:
Min Idzelis
2025-07-06 15:39:38 +00:00
committed by GitHub
parent 448c90d3a5
commit 7d95e52a7a
+4
View File
@@ -22,6 +22,9 @@ inputs:
build-args:
description: 'Docker build arguments'
required: false
target:
description: 'Sets the target stage to build'
required: false
runs:
using: 'composite'
steps:
@@ -95,6 +98,7 @@ runs:
type=registry,ref=${{ inputs.image }}-build-cache:${{ steps.cache-target.outputs.cache-key-base }}-${{ env.CACHE_KEY_SUFFIX }}
type=registry,ref=${{ inputs.image }}-build-cache:${{ steps.cache-target.outputs.cache-key-base }}-main
outputs: type=image,"name=${{ inputs.image }}",push-by-digest=true,name-canonical=true,push=${{ !github.event.pull_request.head.repo.fork }}
target: ${{ inputs.target }}
build-args: |
BUILD_ID=${{ github.run_id }}
BUILD_IMAGE=${{ github.event_name == 'release' && github.ref_name || steps.meta.outputs.tags }}