From 58ad6af9c5c1c347ef312778d442ab15729e69e7 Mon Sep 17 00:00:00 2001 From: pythoninthegrass <4097471+pythoninthegrass@users.noreply.github.com> Date: Thu, 10 Oct 2024 01:13:08 -0500 Subject: [PATCH] ci: fix tags for branches and SHAs --- .github/workflows/docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index c9711cd2b..45b69044f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -70,8 +70,8 @@ jobs: images: | ${{ env.REGISTRY_URL }}/${{ env.REGISTRY_URL == 'ghcr.io' && github.repository_owner || env.REGISTRY_USER }}/${{ steps.image_name.outputs.IMAGE }} tags: | - type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') || endsWith(github.ref, 'master') }} - type=ref,event=branch,enable=${{ !endsWith(github.ref, 'main') && !endsWith(github.ref, 'master') }} + type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' }} + type=ref,event=branch type=semver,pattern={{version}} flavor: | latest=false