#7: Docker build command

+ url refernce updated
This commit is contained in:
2026-09-28 21:27:28 +03:00
parent 5bd2aaa7a9
commit 184358025f
+7 -3
View File
@@ -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 }}"