Skip to content

Commit

Permalink
Fixed Release Workflow (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: VG <[email protected]>
  • Loading branch information
gvatsal60 and VG authored Sep 16, 2024
1 parent e67ce43 commit e419bf2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-img-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit e419bf2

Please sign in to comment.