Skip to content

Commit

Permalink
Don't run docker push on forks (nightscout#6718)
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 authored and ivalkou committed Apr 8, 2021
1 parent 3f5635f commit d543035
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 d543035

Please sign in to comment.