Skip to content

Commit

Permalink
Don't push into dockerhub in forks.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Jul 29, 2024
1 parent 1efecd7 commit 64c49ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ jobs:
platforms: arm64,arm,riscv64,mips64le,ppc64le,s390x

- name: Log in to Docker Hub
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && github.repository == 'sippy/libg722'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
Expand Down Expand Up @@ -206,6 +206,6 @@ jobs:
platforms: ${{ env.PLATFORMS }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true
push: ${{ github.repository == 'sippy/libg722' && 'true' || 'false' }}
cache-from: ${{ env.CACHE_SPEC }}
cache-to: ${{ env.CACHE_SPEC }},mode=max

0 comments on commit 64c49ac

Please sign in to comment.