ci: release chain — shared workflows, semver wording, source-only goreleaser, version stamping

This commit is contained in:
2026-08-20 21:48:11 +01:00
parent 7621733c88
commit 64eef947a7
8 changed files with 339 additions and 8 deletions
+15
View File
@@ -0,0 +1,15 @@
package traefikllmgateway
// pluginVersion is the released version of this plugin. It is stamped at
// release time by ./workflow-prepare.sh (invoked by the shared go-release
// workflow before GoReleaser builds and tags), which rewrites the string
// below to the computed semver.
//
// Traefik runs this plugin under Yaegi, where the version cannot be
// resolved from build info at runtime (debug.ReadBuildInfo sees Traefik's
// build graph, not the interpreted plugin). This build-stamped constant is
// therefore the single source of truth for the version surfaced read-only
// in GET /admin/api/overview (spec §4, v0.2). Local/dev/test builds carry
// the "0.0.0-dev" sentinel below, since nothing has stamped them. Not read
// from anywhere else in the package.
const pluginVersion = "0.0.0-dev"