diff options
author | Finlay Davidson <finlay.davidson@coderclass.nl> | 2022-06-16 09:13:46 +0200 |
---|---|---|
committer | JF <JF002@users.noreply.github.com> | 2022-07-08 17:13:47 +0200 |
commit | 4ee3e51605272464587f16f23633fc062be19f66 (patch) | |
tree | 7233d3b786c2bde5d4d2fe7659c16669a0c92b11 /.github | |
parent | b089fc2c610812bc551df3dca79da7798899acd8 (diff) |
Require event_name to be push for Docker Hub
Instead of just checking if it's not pull_request
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/docker.yml | 4 |
1 files 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 |