From e419bf27b04ba539bd831a008a426ee7c97bfa94 Mon Sep 17 00:00:00 2001 From: Vatsal Gupta <40350810+gvatsal60@users.noreply.github.com> Date: Mon, 16 Sep 2024 17:41:47 +0530 Subject: [PATCH] Fixed Release Workflow (#9) Co-authored-by: VG --- .github/workflows/docker-img-push.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-img-push.yaml b/.github/workflows/docker-img-push.yaml index 41765f3..d344300 100644 --- a/.github/workflows/docker-img-push.yaml +++ b/.github/workflows/docker-img-push.yaml @@ -44,6 +44,7 @@ jobs: context: Dockerfiles file: Dockerfiles/${{ matrix.dockerfile }} push: false + load: true tags: ghcr.io/${{ github.actor }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }} - name: Build and push Docker image if: github.event_name == 'push' @@ -52,13 +53,13 @@ jobs: context: Dockerfiles file: Dockerfiles/${{ matrix.dockerfile }} push: true + load: true tags: ghcr.io/${{ github.actor }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }} cache-from: type=registry,ref=ghcr.io/${{ github.actor }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }} cache-to: type=registry,ref=ghcr.io/${{ github.actor }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }},mode=max - name: Save Docker image to tarball - if: github.event_name == 'push' run: | - docker save ${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }} -o ${{ env.IMG_REPO_NAME }}.tar + docker save ghcr.io/${{ github.actor }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }} -o ${{ env.IMG_REPO_NAME }}.tar - name: Create GitHub release if: github.event_name == 'push' uses: actions/create-release@v1