ci: skip docker's login on fork repo (#18448)
This commit is contained in:
parent
a3218cb038
commit
129e18df6f
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue