From bee854f059daea91127ce4cfa9219ce3da008d1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Bani=C4=87?= Date: Thu, 13 Apr 2023 10:40:30 +0200 Subject: [PATCH] Exclude DockerHub in case there is no username set --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90d5cc9..686a92c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,12 +39,11 @@ jobs: id: docker_meta env: DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - if: "${{ env.DOCKER_USERNAME != '' }}" uses: docker/metadata-action@v4 with: images: | - ${{ secrets.DOCKER_USERNAME }}/jellyplex-watched - ghcr.io/${{ secrets.DOCKER_USERNAME }}/jellyplex-watched + ${{ secrets.DOCKER_USERNAME }}/jellyplex-watched,enable=${{ secrets.DOCKER_USERNAME != '' }} + ghcr.io/${{ github.repository_owner }}/jellyplex-watched tags: | type=raw,value=${{ matrix.variant }},enable={{is_default_branch}} type=ref,event=branch,suffix=-${{ matrix.variant }}