Match version tags with globs, not regex

Workflow tag filters are glob patterns, so the `[0-9]+` in the previous
version had `+` read as a literal plus and would never have matched 1.0.0 —
the release would have pushed a tag and quietly built nothing.

`[0-9]*.[0-9]*.[0-9]*` uses only basic glob, matches 1.2.3 and 1.2.3-rc1
alike, and still ignores tags that are not versions. The prerelease patterns
collapse into it, since the trailing wildcard already absorbs a suffix.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BGkRmLfiWuJHx6tQ12EELY
This commit is contained in:
2026-08-26 12:10:53 -03:00
co-authored by Claude Opus 5
parent fb12eb6c9f
commit 7075a174d4
+5 -4
View File
@@ -27,10 +27,11 @@ on:
branches:
- main
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-*'
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-*'
# Glob, not regex: `[0-9]` is one digit and `*` is the rest, so these
# match 1.2.3 and 1.2.3-rc1 while ignoring tags that are not versions.
# A `+` here would be read as a literal plus.
- '[0-9]*.[0-9]*.[0-9]*'
- 'v[0-9]*.[0-9]*.[0-9]*'
pull_request:
paths:
- 'Dockerfile'