#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 b34fa35ec7 - Show all commits
+3 -1
View File
@@ -22,10 +22,12 @@ runs:
repo_host="${repo_url#https://}" repo_host="${repo_url#https://}"
repo_host="${repo_host%%/*}" repo_host="${repo_host%%/*}"
docker login --username acti-bot --password ${ACTI_BOT_TOKEN} ${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 while IFS= read -r tag; do
[[ -z "$tag" ]] && continue [[ -z "$tag" ]] && continue
image="${repo_host}/${{ gitea.repository }}/${{ inputs.name }}:$tag" 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 docker push $image
done <<< "${{ inputs.tags }}" done <<< "${{ inputs.tags }}"