From ae6499b941542964ed41743e4edd03f5ff50a7d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deluan=20Quint=C3=A3o?= <deluan@navidrome.org>
Date: Tue, 15 Oct 2024 18:28:27 -0400
Subject: [PATCH] fix: PRs should not try to push to docker (#3393)

---
 .dockerignore                  | 2 +-
 .github/workflows/pipeline.yml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.dockerignore b/.dockerignore
index 847680dff..054044784 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -11,6 +11,6 @@ navidrome
 navidrome.toml
 tmp
 !tmp/taglib
-dist
+dist/*
 cache
 music
\ No newline at end of file
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index 65b512e80..6bb36e7a2 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -248,7 +248,7 @@ jobs:
     steps:
       - name: Check if Docker push is configured
         id: check
-        run: echo "is_enabled=${{ vars.DOCKER_HUB_REPO != '' }}" >> $GITHUB_OUTPUT
+        run: echo "is_enabled=${{ secrets.DOCKER_HUB_USERNAME != '' }}" >> $GITHUB_OUTPUT
 
   push-manifest:
     name: Push Docker manifest