From 436e40d2cad8efdd945261fd43a797b3b43126a1 Mon Sep 17 00:00:00 2001 From: Dan Haman Date: Mon, 28 Sep 2026 21:49:37 +0300 Subject: [PATCH] #7: Docker build command + build context fixed + variable containerfile name support --- docker/action.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/action.yaml b/docker/action.yaml index cdfce0d..50fc949 100644 --- a/docker/action.yaml +++ b/docker/action.yaml @@ -8,6 +8,10 @@ inputs: tags: description: newline-separated list of tags to tag the image required: true + containerfile: + description: target container file to build + required: false + default: Containerfile runs: using: composite @@ -22,6 +26,6 @@ runs: [[ -z "$tag" ]] && continue image="${repo_host}/${{ gitea.repository }}/${{ inputs.name }}:$tag" - docker build -f Containerfile -t $image + docker build -f ${{ containerfile }} -t $image . docker push $image done <<< "${{ inputs.tags }}"