only run docker login in main repo (#1955)

This commit is contained in:
Michel Oosterhof 2023-10-08 00:15:22 +08:00 committed by GitHub
parent f056357453
commit 6992d86caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
if: ${{ (github.event_name != 'pull_request') && (github.repository == 'cowrie/cowrie') }}
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
@ -71,7 +71,7 @@ jobs:
docker run -d --rm cowrie:test
- name: Build and push
if: github.event_name != 'pull_request'
if: ${{ (github.event_name != 'pull_request') && (github.repository == 'cowrie/cowrie') }}
uses: docker/build-push-action@v5
with:
file: docker/Dockerfile