Skip to content

Commit

Permalink
only build CLI on main
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu committed Jan 6, 2025
1 parent 43d7707 commit 5ecbe43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ jobs:
GIT_BUILD_HASH=${{ steps.vars.outputs.sha }}
labels: ${{ steps.meta.outputs.labels }}
- uses: actions/attest-build-provenance@v2
if: ${{ github.ref == 'refs/heads/main' }}
with:
subject-name: ghcr.io/beryju/gravity
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: ${{ github.ref == 'refs/heads/main' }}
push-to-registry: true
build-cli:
name: Build CLI
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
strategy:
matrix:
arch: [arm64, amd64]
Expand Down

0 comments on commit 5ecbe43

Please sign in to comment.