Skip to content

Commit

Permalink
Don't run docker push on forks
Browse files Browse the repository at this point in the history
Skip the docker push steps if the repo owner is not 'nightscout'.
  • Loading branch information
StephenBrown2 committed Jan 8, 2021
1 parent 1351d35 commit 80a4d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
name: Publish dev branch to Docker Hub
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev'
if: github.ref == 'refs/heads/dev' && github.repository_owner == 'nightscout'
env:
DOCKER_IMAGE: nightscout/cgm-remote-monitor
steps:
Expand All @@ -68,7 +68,7 @@ jobs:
name: Publish master branch to Docker Hub
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' && github.repository_owner == 'nightscout'
env:
DOCKER_IMAGE: nightscout/cgm-remote-monitor
steps:
Expand Down

0 comments on commit 80a4d19

Please sign in to comment.