building tagging and pushing in one go

This commit is contained in:
2025-08-04 21:12:55 +02:00
parent ccff41a473
commit 4c03e8f919
2 changed files with 3 additions and 11 deletions

View File

@@ -197,16 +197,8 @@ jobs:
--platform windows/amd64 \
-f Dockerfile.windows \
--build-arg BINARY_NAME=${{ needs.detect-project.outputs.project-name }} \
--load \
-t ${{ env.IMAGE_NAME }}:windows-${{ env.TAG }} .
- name: Tag and Push Windows Docker image
if: ${{ success() }}
run: |
echo "Tagging Windows Docker image"
docker tag ${{ env.IMAGE_NAME }}:windows-${{ env.TAG }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:windows-${{ env.TAG }}
echo "Pushing Windows Docker image to registry: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:windows-${{ env.TAG }}"
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:windows-${{ env.TAG }}
--push \
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:windows-${{ env.TAG }} .
cleanup:
name: Cleanup