mirror of https://github.com/cowrie/cowrie.git
only run docker login in main repo (#1955)
This commit is contained in:
parent
f056357453
commit
6992d86caf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue