Skip to content

Commit

Permalink
fix: run on release & tag with version
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopereira12 committed Jul 15, 2024
1 parent da29d10 commit 2d294a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Build Docker Image
on:
push:
branches: [release]
pull_request:
branches: [release]
release:
types: [published]
env:
IMAGE: ghcr.io/${{ github.repository }}
jobs:
Expand Down Expand Up @@ -37,6 +35,8 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
tags: |
type=raw, value=${{ github.event.release.tag_name }}
- name: Build and push Docker image
id: build
uses: docker/build-push-action@v6
Expand Down

0 comments on commit 2d294a0

Please sign in to comment.