ci: switch versioning from CalVer to SemVer
CI / test (pull_request) Successful in 1m59s
CI / lint (pull_request) Successful in 1m27s
CI / vulncheck (pull_request) Successful in 56s

Go module tooling requires v-prefixed semver tags (go install @latest
ignores CalVer tags entirely), GoReleaser errors on non-semver tags,
and zero-padded CalVer months are invalid semver. Old CalVer tags and
releases were deleted due to pre-release security issues; relaunch
tags as v1.0.0.

- Workflow tag triggers: [0-9]* -> v[0-9]* (Gitea + GitHub relay)
- cliff.toml tag_pattern: regex v[0-9].* (was matching everything --
  tag_pattern is regex since git-cliff 1.4, not glob)
- Docker image tags drop the v prefix per registry convention
This commit was merged in pull request #120.
This commit is contained in:
2026-06-12 11:13:18 -04:00
parent c3eac80e14
commit e99e959b64
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ name: Release Binaries
on: on:
push: push:
tags: tags:
- "[0-9]*" - "v[0-9]*"
jobs: jobs:
release: release:
+4 -2
View File
@@ -3,11 +3,11 @@ name: Release Docker
on: on:
push: push:
tags: tags:
- "[0-9]*" - "v[0-9]*"
workflow_dispatch: workflow_dispatch:
inputs: inputs:
tag: tag:
description: "Image tag (e.g. 2026.06.1). Defaults to latest commit SHA." description: "Image tag (e.g. 1.0.0, no v prefix). Defaults to latest commit SHA."
required: false required: false
jobs: jobs:
@@ -27,7 +27,9 @@ jobs:
TAG="${{ github.sha }}" TAG="${{ github.sha }}"
fi fi
else else
# Docker convention: git tag v1.2.3 -> image tag 1.2.3
TAG="${{ github.ref_name }}" TAG="${{ github.ref_name }}"
TAG="${TAG#v}"
fi fi
echo "tag=$TAG" >> "$GITHUB_OUTPUT" echo "tag=$TAG" >> "$GITHUB_OUTPUT"
+1 -1
View File
@@ -3,7 +3,7 @@ name: Mirror Release to GitHub
on: on:
push: push:
tags: tags:
- "[0-9]*" - "v[0-9]*"
permissions: permissions:
contents: write contents: write
+1 -1
View File
@@ -23,7 +23,7 @@ filter_unconventional = true
split_commits = false split_commits = false
protect_breaking_commits = false protect_breaking_commits = false
filter_commits = false filter_commits = false
tag_pattern = "[0-9]*" tag_pattern = "v[0-9].*"
topo_order = false topo_order = false
sort_commits = "oldest" sort_commits = "oldest"