From 129e18df6fb10977e66a8059818981c807dd861d Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Fri, 1 Sep 2023 16:16:43 +0200 Subject: [PATCH] ci: skip docker's login on fork repo (#18448) --- .github/workflows/docker-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }}