ci: skip docker's login on fork repo (#18448)

This commit is contained in:
Jirka Borovec 2023-09-01 16:16:43 +02:00 committed by GitHub
parent a3218cb038
commit 129e18df6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 }}