#7: Docker build command

+ building improved
This commit is contained in:
2026-09-28 23:36:42 +03:00
parent 06b262de81
commit b34fa35ec7
+3 -1
View File
@@ -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 }}"