Don't run docker push on forks (#6718)

Skip the docker push steps if the repo owner is not 'nightscout'.
This commit is contained in:
Stephen Brown II
2021-01-09 13:54:41 +11:00
committed by GitHub
parent 1351d35066
commit 22c0071205
+2 -2
View File
@@ -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:
@@ -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: