From ff41fdabf0584bec70e4f4b57ca6a3f70025eed8 Mon Sep 17 00:00:00 2001 From: Martin Dimitrov Date: Fri, 3 Jul 2026 16:38:46 -0700 Subject: [PATCH] add target support --- .gitea/actions/docker-build-push/action.yaml | 5 +++++ .gitea/workflows/docker-publish-ghcr.yaml | 5 +++++ .gitea/workflows/docker-publish-private.yaml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/.gitea/actions/docker-build-push/action.yaml b/.gitea/actions/docker-build-push/action.yaml index 3222055..b5e71c3 100644 --- a/.gitea/actions/docker-build-push/action.yaml +++ b/.gitea/actions/docker-build-push/action.yaml @@ -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 }} diff --git a/.gitea/workflows/docker-publish-ghcr.yaml b/.gitea/workflows/docker-publish-ghcr.yaml index b89bd95..680ca12 100644 --- a/.gitea/workflows/docker-publish-ghcr.yaml +++ b/.gitea/workflows/docker-publish-ghcr.yaml @@ -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 }} diff --git a/.gitea/workflows/docker-publish-private.yaml b/.gitea/workflows/docker-publish-private.yaml index a03df5d..f9ca3de 100644 --- a/.gitea/workflows/docker-publish-private.yaml +++ b/.gitea/workflows/docker-publish-private.yaml @@ -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 }}