Skip to content

feat: set version from git tag at build time - #197

Open
vlnst wants to merge 1 commit into
httpjamesm:mainfrom
vlnst:versioning
Open

vlnst wants to merge 1 commit into
httpjamesm:mainfrom
vlnst:versioning

Conversation

@vlnst

@vlnst vlnst commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Right now the version in config/version.go has to be bumped by hand before each release.

This passes the version to the Docker build instead:

  • The workflow sets the VERSION build arg to the tag name (or the commit SHA for PR builds).
  • The Dockerfile sets config.Version with -ldflags (leading v stripped, so v1.14.0 becomes 1.14.0).
  • Local builds without the arg show dev.

Pushing a vX.Y.Z tag is now enough to release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant