Skip to content

Commit

Permalink
conditional builds
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkarlsen committed Sep 9, 2023
1 parent cdda9d5 commit e029df9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
permissions:
checks: write
contents: write
Expand Down Expand Up @@ -44,9 +45,11 @@ jobs:
make docker-buildx VERSION=${{ env.VERSION }}
- name: bundle
if: contains(fromJson('["refs/heads/main", "refs/tags"]'), github.event.action)
run: |
make bundle bundle-build bundle-push VERSION=${{ env.VERSION }}
- name: catalog
if: contains(fromJson('["refs/heads/main", "refs/tags"]'), github.event.action)
run: |
make catalog-build catalog-push VERSION=${{ env.VERSION }}

0 comments on commit e029df9

Please sign in to comment.