Skip to content

Commit

Permalink
Merge pull request #39 from telekom-mms/only_on_tags
Browse files Browse the repository at this point in the history
only publish images when a release was made
  • Loading branch information
rndmh3ro authored Dec 1, 2023
2 parents 3b3b02c + e13abe5 commit 01a0737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
if: github.ref == 'refs/heads/main'
if: github.event_name == 'release' && github.event.action == 'published'
-
name: Build the container
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5
Expand All @@ -46,4 +46,4 @@ jobs:
context: .
push: true
tags: ghcr.io/telekom-mms/docker-trivy-dojo-operator:latest,ghcr.io/telekom-mms/docker-trivy-dojo-operator:${{ github.event.release.tag_name }}
if: github.ref == 'refs/heads/main'
if: github.event_name == 'release' && github.event.action == 'published'

0 comments on commit 01a0737

Please sign in to comment.