From bba9a236c33614b70481af13edcbdc9a84f80dd9 Mon Sep 17 00:00:00 2001 From: Nathan Esquenazi Date: Fri, 3 Apr 2026 19:32:50 -0700 Subject: [PATCH] fix(ci): use stricter semver regex for Docker tag extraction Use v(\d+\.\d+(?:\.\d+)?) instead of v(.*) to only match real version numbers (v0.29, v0.29.1), not arbitrary strings. Keep latest unconditional since all tag pushes are releases. Based on review of PR #52 approach vs #53. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e60456..5c31119 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,14 +33,14 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - # Extract semver tags: e.g. v0.28 -> 0.28, latest + # Extract tags from the git ref (supports vX.Y and vX.Y.Z formats) - name: Extract metadata id: meta uses: docker/metadata-action@v5 with: images: ghcr.io/${{ github.repository }} tags: | - type=match,pattern=v(.*),group=1 + type=match,pattern=v(\d+\.\d+(?:\.\d+)?),group=1 type=raw,value=latest # Build and push multi-arch image (amd64 + arm64)