From 56f2365606929ade95cdb406a0af5a8885764bca Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Sun, 19 Jul 2020 22:12:23 +0200 Subject: [PATCH] Only branch check is needed --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4413c85..7815e0b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,13 +62,13 @@ jobs: ignore: tests/shunit2 - name: Verify signature - if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' uses: atmoz/git-verify-ref@master with: public_key_dir: .github/public-keys - name: Push images to Docker Hub registry - if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' run: | echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login \ -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin @@ -76,7 +76,7 @@ jobs: docker push $IMAGE_NAME # no tags specified to include all tags - name: Push images to GitHub registry - if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' run: | echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com \ -u ${{ github.actor }} --password-stdin