Skip to content

Commit 7fd36db

Browse files
authored
Update mapstore.yml (#490) (#493)
1 parent dedaa0f commit 7fd36db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/mapstore.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "mapstore"
2-
on: [push]
2+
on: [push, pull_request]
33

44
jobs:
55
build:
@@ -88,20 +88,20 @@ jobs:
8888
# mvn -B package dockerfile:build -Pdocker,log4j-logstash,sentry-log4j -DdockerImageName=georchestra/mapstore:${{ steps.version.outputs.VERSION }} -settings settings.xml
8989
working-directory: ${{ github.workspace }}
9090
- name: "Logging in docker.io"
91-
if: github.repository == 'georchestra/mapstore2-georchestra'
91+
if: github.repository == 'georchestra/mapstore2-georchestra' && github.event_name == 'push'
9292
uses: azure/docker-login@v1
9393
with:
9494
username: '${{ secrets.DOCKER_HUB_USERNAME }}'
9595
password: '${{ secrets.DOCKER_HUB_PASSWORD }}'
9696

9797
- 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'
9999
run: |
100100
docker tag georchestra/mapstore:${{ steps.version.outputs.VERSION }} georchestra/mapstore:latest
101101
docker push georchestra/mapstore:latest
102102
working-directory: ${{ github.workspace }}
103103

104104
- 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'
106106
run: |
107107
docker push georchestra/mapstore:${{ steps.version.outputs.VERSION }}

0 commit comments

Comments
 (0)