add target support
All checks were successful
Reload Act Runner Stack to clear cache for workflows / diff (push) Successful in 33s
Reload Act Runner Stack to clear cache for workflows / reload-primary (push) Successful in 48s
Reload Act Runner Stack to clear cache for workflows / wait-for-primary-death (push) Successful in 45s
Reload Act Runner Stack to clear cache for workflows / reload-secondary (push) Successful in 9s
Reload Act Runner Stack to clear cache for workflows / wait-for-secondary-death (push) Successful in 34s
Reload Act Runner Stack to clear cache for workflows / pull-cache-secondary (push) Successful in 14s

This commit is contained in:
Martin Dimitrov 2026-07-03 16:38:46 -07:00
parent a42b5c4749
commit ff41fdabf0
3 changed files with 15 additions and 0 deletions

View File

@ -23,7 +23,11 @@ inputs:
default: 'true'
outputs:
description: 'Custom outputs configuration'
required: false
target:
description: 'Sets the target stage to build'
required: false
type: string
runs:
using: "composite"
@ -52,3 +56,4 @@ runs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
outputs: ${{ inputs.outputs }}
target: ${{ inputs.target }}

View File

@ -31,6 +31,10 @@ on:
required: false
type: string
default: ${{ github.token }}
target:
description: 'Sets the target stage to build'
required: false
type: string
jobs:
docker:
@ -68,3 +72,4 @@ jobs:
file: ${{ inputs.file }}
platforms: ${{ inputs.platforms }}
context: .
target: ${{ inputs.target }}

View File

@ -31,6 +31,10 @@ on:
required: false
type: string
default: ${{ github.token }}
target:
description: 'Sets the target stage to build'
required: false
type: string
secrets: []
jobs:
@ -56,3 +60,4 @@ jobs:
platforms: ${{ inputs.platforms }}
context: .
outputs: type=image,registry.insecure=true,push=true
target: ${{ inputs.target }}