From e5860064c35617014bd2a08ac325dfe33f8307ff Mon Sep 17 00:00:00 2001 From: Ronny Moreas Date: Wed, 16 Apr 2025 12:07:41 +0000 Subject: [PATCH] chore(ci): do not add latest tag on release candidate Signed-off-by: Ronny Moreas --- .github/workflows/images.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml index 9b7e5f85..178ab8e5 100644 --- a/.github/workflows/images.yaml +++ b/.github/workflows/images.yaml @@ -61,7 +61,7 @@ jobs: type=raw,value=canary,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} type=ref,event=pr type=semver,pattern={{raw}} - type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }} + type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '.') && !contains(github.ref, '-') }} - name: Login to GitHub Container Registry uses: docker/login-action@v3