diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 0900ef3..664fab8 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -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 }} @@ -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