From b34fa35ec721b7373b734e578318a4ae2b768bfa Mon Sep 17 00:00:00 2001 From: Dan Haman Date: Mon, 28 Sep 2026 23:36:42 +0300 Subject: [PATCH] #7: Docker build command + building improved --- docker/action.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/action.yaml b/docker/action.yaml index 66e0529..ef383b8 100644 --- a/docker/action.yaml +++ b/docker/action.yaml @@ -22,10 +22,12 @@ runs: repo_host="${repo_url#https://}" repo_host="${repo_host%%/*}" docker login --username acti-bot --password ${ACTI_BOT_TOKEN} ${repo_host} + + docker build -f ${{ inputs.containerfile }} -t img-${{ gitea.run_id }} . while IFS= read -r tag; do [[ -z "$tag" ]] && continue image="${repo_host}/${{ gitea.repository }}/${{ inputs.name }}:$tag" - docker build -f ${{ inputs.containerfile }} -t $image . + docker tag img-${{ gitea.run_id }} $image docker push $image done <<< "${{ inputs.tags }}"