From 4ee3e51605272464587f16f23633fc062be19f66 Mon Sep 17 00:00:00 2001 From: Finlay Davidson Date: Thu, 16 Jun 2022 09:13:46 +0200 Subject: [PATCH] Require event_name to be push for Docker Hub Instead of just checking if it's not pull_request --- .github/workflows/docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index bbc6a3c8..f7aeb7d5 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v3 - name: Log in to Docker Hub - if: github.event_name != 'pull_request' + if: github.event_name == 'push' uses: docker/login-action@v2 with: username: infinitime @@ -36,7 +36,7 @@ jobs: file: ./docker/Dockerfile platforms: linux/amd64,linux/arm64 builder: ${{ steps.buildx.outputs.name }} - push: ${{ github.event_name != 'pull_request' }} + push: ${{ github.event_name == 'push' }} tags: infinitime/infinitime-build:latest cache-from: type=registry,ref=infinitime/infinitime-build:buildcache cache-to: type=registry,ref=infinitime/infinitime-build:buildcache,mode=max