diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 7dc8704251..ce289e9ee2 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -53,7 +53,7 @@ jobs: submodules: true - uses: docker/setup-buildx-action@v2 - uses: docker/login-action@v2 - if: env.PUSH_RELEASE == 'true' + if: env.PUSH_RELEASE == 'true' && github.repository_owner == 'Lightning-AI' with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} @@ -112,7 +112,7 @@ jobs: - uses: actions/checkout@v3 - uses: docker/setup-buildx-action@v2 - uses: docker/login-action@v2 - if: env.PUSH_NIGHTLY == 'true' + if: env.PUSH_NIGHTLY == 'true' && github.repository_owner == 'Lightning-AI' with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }}