From faa378c75eb7b755428693944b449f04deb50a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Bani=C4=87?= Date: Thu, 13 Apr 2023 11:20:19 +0200 Subject: [PATCH] Add is_default_branch conditional to latest tag --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e541310..5555740 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: ${{ secrets.DOCKER_USERNAME }}/jellyplex-watched,enable=${{ secrets.DOCKER_USERNAME != '' }} ghcr.io/${{ github.repository_owner }}/jellyplex-watched tags: | - type=raw,value=latest,enable=${{ matrix.variant == 'alpine' }} + type=raw,value=latest,enable=${{ matrix.variant == 'alpine' && is_default_branch }} type=raw,value=latest,suffix=-${{ matrix.variant }},enable={{ is_default_branch }} type=ref,event=branch,suffix=-${{ matrix.variant }} type=ref,event=pr,suffix=-${{ matrix.variant }}