From 679d3535b10a394018fdd3f8913a6a9e9723fc48 Mon Sep 17 00:00:00 2001 From: Luis Garcia Date: Mon, 15 Jul 2024 04:20:37 -0600 Subject: [PATCH] CI: Fix latest --- .github/workflows/ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c404a72..1ad4096 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -129,22 +129,23 @@ jobs: ${{ secrets.DOCKER_USERNAME }}/jellyplex-watched,enable=${{ secrets.DOCKER_USERNAME != '' }} # Do not push to ghcr.io on PRs due to permission issues, only push if the owner is luigi311 so it doesnt fail on forks ghcr.io/${{ github.repository }},enable=${{ github.event_name != 'pull_request' && github.repository_owner == 'luigi311'}} + flavor: latest=false tags: | + type=raw,value=latest,enable=${{ matrix.variant == env.DEFAULT_VARIANT && startsWith(github.ref, 'refs/tags/') }} + type=raw,value=latest,suffix=-${{ matrix.variant }},enable=${{ startsWith(github.ref, 'refs/tags/') }} + type=ref,event=branch,suffix=-${{ matrix.variant }} type=ref,event=branch,enable=${{ matrix.variant == env.DEFAULT_VARIANT }} - + type=ref,event=pr,suffix=-${{ matrix.variant }} type=ref,event=pr,enable=${{ matrix.variant == env.DEFAULT_VARIANT }} - type=ref,event=tag,value=latest,enable=${{ matrix.variant == env.DEFAULT_VARIANT }} - type=ref,event=tag,value=latest,suffix=-${{ matrix.variant }} - type=semver,pattern={{ version }},suffix=-${{ matrix.variant }} type=semver,pattern={{ version }},enable=${{ matrix.variant == env.DEFAULT_VARIANT }} - + type=semver,pattern={{ major }}.{{ minor }},suffix=-${{ matrix.variant }} type=semver,pattern={{ major }}.{{ minor }},enable=${{ matrix.variant == env.DEFAULT_VARIANT }} - + type=sha,suffix=-${{ matrix.variant }} type=sha,enable=${{ matrix.variant == env.DEFAULT_VARIANT }}