Skip to content

Commit

Permalink
narrow down build and push conditions.
Browse files Browse the repository at this point in the history
Signed-off-by: Roshan Khatri <[email protected]>
  • Loading branch information
roshkhatri committed Jul 29, 2024
1 parent 2ce6882 commit eb6c359
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ jobs:
run: ${{ matrix.runs.images }}

build_and_push:
if: github.event_name == 'push'
if: |
(github.event_name == 'push' &&
github.repository == 'valkey-io/valkey-container' &&
github.head_ref == 'mainline')
needs:
- generate-jobs
- test
Expand Down

0 comments on commit eb6c359

Please sign in to comment.