From 184358025f0dff449a707e4be733979b085a4e8d Mon Sep 17 00:00:00 2001 From: Dan Haman Date: Mon, 28 Sep 2026 21:27:28 +0300 Subject: [PATCH] #7: Docker build command + url refernce updated --- docker/action.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docker/action.yaml b/docker/action.yaml index 7d8494b..c47f2f4 100644 --- a/docker/action.yaml +++ b/docker/action.yaml @@ -14,10 +14,14 @@ runs: steps: - shell: bash run: | - docker login --username acti-bot --password ${ACTI_BOT_TOKEN} ${{ gitea.server_url }} + repo_url="${{ gitea.repositoryUrl }}" + repo_host="${repo_url#https://}" + repo_host="${repo_host%%/*}" + docker login --username acti-bot --password ${ACTI_BOT_TOKEN} ${repo_host} while IFS= read -r tag; do [[ -z "$tag" ]] && continue - docker build -f Containerfile -t "${{ gitea.server_url }}/${{ gitea.repository }}/${{ inputs.name }}:$tag" - docker push "${{ gitea.server_url }}/${{ gitea.repository }}/${{ inputs.name }}:$tag" + image="${repo_host}/${{ gitea.repository }}/${{ inputs.name }}:$tag" + docker build -f Containerfile -t $image + docker push $image done <<< "${{ inputs.tags }}"