diff --git a/docker/action.yaml b/docker/action.yaml index 66e0529..ef383b8 100644 --- a/docker/action.yaml +++ b/docker/action.yaml @@ -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 }}"