Do not login for pull requests
This commit is contained in:
parent
7fe4530b84
commit
32b3541906
1 changed files with 2 additions and 1 deletions
1
.github/workflows/main.yaml
vendored
1
.github/workflows/main.yaml
vendored
|
|
@ -40,6 +40,7 @@ jobs:
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue