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) <noreply@anthropic.com>
This commit is contained in:
Nathan Esquenazi
2026-04-03 19:32:50 -07:00
parent 846565484b
commit bba9a236c3

View File

@@ -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)