Skip to content

Commit 54b6b15

Browse files
authored
Update docker-hub.yml
1 parent b5c5fa9 commit 54b6b15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/docker-hub.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ jobs:
8181
version: v${{ env.BUILDKIT_VERSION }}
8282

8383
- name: Login to Docker Hub
84+
# Only run when master or when tagging a version
85+
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.event_name != 'pull_request'
8486
uses: docker/login-action@v3
8587
with:
8688
username: ${{ secrets.DOCKER_HUB_USERNAME }}

0 commit comments

Comments
 (0)