diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index d89b426..15e7a91 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -40,12 +40,14 @@ jobs: # Extract metadata (tags, labels) from Git reference and GitHub events for Docker - id: meta uses: docker/metadata-action@v5 + if: github.event_name != 'pull_request' with: images: ghcr.io/thelovinator1/anewdawn tags: type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} # Build and push the Docker image - uses: docker/build-push-action@v6 + if: github.event_name != 'pull_request' with: context: . push: ${{ github.event_name != 'pull_request' }}