From c9b708093357b089cb002a48d35edfa4ed51fe3a Mon Sep 17 00:00:00 2001 From: donpat1to Date: Mon, 11 Aug 2025 20:09:06 +0200 Subject: [PATCH] building current docker image --- .github/workflows/build.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f60912c..98f036d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -157,15 +157,13 @@ jobs: --load \ -t ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} . - - name: Save Docker image as artifact + - name: Tag and Push Linux Docker image + if: ${{ success() }} run: | - docker save ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} -o linux-image.tar - - - name: Upload Docker image artifact - uses: actions/upload-artifact@v3 - with: - name: linux-docker-image - path: linux-image.tar + echo "Tagging Linux Docker image" + docker tag ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} + echo "Pushing Linux Docker image to registry: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}" + docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} cleanup: name: Cleanup