From fb6c3acb5f88f72870c30e2811589adf66ddf41f Mon Sep 17 00:00:00 2001 From: Gabriel Saratura Date: Thu, 20 Feb 2020 17:14:23 +0100 Subject: [PATCH] Update workflow logic --- .github/workflows/dockerimage.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index 3c1685e..0a78102 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -1,8 +1,5 @@ name: Build images for Docker Hub -on: - push: - branches: - - master +on: [push, pull_request] jobs: build: runs-on: ubuntu-latest @@ -28,4 +25,5 @@ jobs: --tag owasp/modsecurity:$(./version.sh ${{ matrix.image }} -vvv) - name: Push ${{ matrix.image }} + if: github.ref == 'refs/heads/master' run: docker push owasp/modsecurity