File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : " mapstore"
2
- on : [push]
2
+ on : [push, pull_request ]
3
3
4
4
jobs :
5
5
build :
@@ -88,20 +88,20 @@ jobs:
88
88
# mvn -B package dockerfile:build -Pdocker,log4j-logstash,sentry-log4j -DdockerImageName=georchestra/mapstore:${{ steps.version.outputs.VERSION }} -settings settings.xml
89
89
working-directory : ${{ github.workspace }}
90
90
- name : " Logging in docker.io"
91
- if : github.repository == 'georchestra/mapstore2-georchestra'
91
+ if : github.repository == 'georchestra/mapstore2-georchestra' && github.event_name == 'push'
92
92
uses : azure/docker-login@v1
93
93
with :
94
94
username : ' ${{ secrets.DOCKER_HUB_USERNAME }}'
95
95
password : ' ${{ secrets.DOCKER_HUB_PASSWORD }}'
96
96
97
97
- name : " Pushing latest to docker.io"
98
- if : github.ref == 'refs/heads/master' && github.repository == 'georchestra/mapstore2-georchestra'
98
+ if : github.ref == 'refs/heads/master' && github.repository == 'georchestra/mapstore2-georchestra' && github.event_name == 'push'
99
99
run : |
100
100
docker tag georchestra/mapstore:${{ steps.version.outputs.VERSION }} georchestra/mapstore:latest
101
101
docker push georchestra/mapstore:latest
102
102
working-directory : ${{ github.workspace }}
103
103
104
104
- name : " Pushing tag to docker.io"
105
- if : contains(github.ref, 'refs/tags/') && github.repository == 'georchestra/mapstore2-georchestra'
105
+ if : contains(github.ref, 'refs/tags/') && github.repository == 'georchestra/mapstore2-georchestra' && github.event_name == 'push'
106
106
run : |
107
107
docker push georchestra/mapstore:${{ steps.version.outputs.VERSION }}
You can’t perform that action at this time.
0 commit comments