Skip to content

Commit

Permalink
restrict chart release to when being tagged
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed May 6, 2024
1 parent d171616 commit db9b317
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ name: Build and Publish
- "v*.*.*"
pull_request:
branches:
- "main"
- 'master'
- main
- master

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -125,8 +125,7 @@ jobs:


chart-release:
# only run when merged to main
if: github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/tags/')
name: Helm Chart Release
needs:
- oci_image
Expand Down

0 comments on commit db9b317

Please sign in to comment.