#7: Docker build command #10

Merged
devastator merged 8 commits from feature/7-docker into master 2026-09-29 00:22:06 +03:00
Showing only changes of commit 184358025f - Show all commits
+7 -3
View File
@@ -14,10 +14,14 @@ runs:
steps: steps:
- shell: bash - shell: bash
run: | 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 while IFS= read -r tag; do
[[ -z "$tag" ]] && continue [[ -z "$tag" ]] && continue
docker build -f Containerfile -t "${{ gitea.server_url }}/${{ gitea.repository }}/${{ inputs.name }}:$tag" image="${repo_host}/${{ gitea.repository }}/${{ inputs.name }}:$tag"
docker push "${{ gitea.server_url }}/${{ gitea.repository }}/${{ inputs.name }}:$tag" docker build -f Containerfile -t $image
docker push $image
done <<< "${{ inputs.tags }}" done <<< "${{ inputs.tags }}"