File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,14 +96,14 @@ jobs:
9696
9797 - name : Login to dockerhub
9898 uses : docker/login-action@v3
99- if : ${{ (github.ref == 'refs/heads/master') && (github.event_name != 'pull_request') }}
99+ if : ${{ (github.repository == 'postgis/docker-postgis') && github. ref == 'refs/heads/master') && (github.event_name != 'pull_request') }}
100100 with :
101101 username : ${{ secrets.DOCKERHUB_USERNAME }}
102102 password : ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
103103
104104 - name : Push docker image to dockerhub
105105 # !!!! ONLY push the images when built on ubuntu-24.04 x86 runner for now, NOT for ubuntu-24.04-arm runners
106- if : ${{ ( github.ref == 'refs/heads/master') && (github.event_name != 'pull_request') && ( matrix.runner-platform == 'ubuntu-24.04' ) }}
106+ if : ${{ (github.repository == 'postgis/docker-postgis') && github.ref == 'refs/heads/master') && (github.event_name != 'pull_request') && ( matrix.runner-platform == 'ubuntu-24.04' ) }}
107107 env :
108108 DOCKERHUB_USERNAME : ${{ secrets.DOCKERHUB_USERNAME }}
109109 DOCKERHUB_ACCESS_TOKEN : ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
You can’t perform that action at this time.
0 commit comments