fix: auto-detect version from version.go in Dockerfile, pass git tag in CI release
This commit is contained in:
@@ -223,7 +223,7 @@ Navigate to **System** to view runtime information:
|
||||
|
||||
Keywarden automatically checks for new releases in the background by querying the Gitea releases API. If a newer version is available, a yellow update badge is displayed in the top header for **Admin** and **Owner** users. The badge links directly to the release page on Gitea.
|
||||
|
||||
The update checker is only active when the application was built with a version tag (via `--build-arg VERSION=...`). Development builds (`dev`) skip the check entirely.
|
||||
The update checker is only active when the application was built with a proper version tag. Development builds without a version skip the check entirely.
|
||||
|
||||
## Admin Settings (Owner Only)
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ The Dockerfile uses a two-stage build:
|
||||
|
||||
The runtime container runs as a non-root user (`keywarden`).
|
||||
|
||||
The build accepts an optional `VERSION` build arg (e.g. `--build-arg VERSION=v1.0.0`) which is injected into the binary via `-ldflags`. This enables the built-in update checker to compare the running version against the latest Gitea release. If omitted, the version defaults to `dev` and the update checker is disabled.
|
||||
The build accepts an optional `VERSION` build arg (e.g. `--build-arg VERSION=v1.0.0`) which is injected into the binary via `-ldflags`. If omitted, the version is automatically extracted from `internal/version/version.go`. The CI release pipeline passes the Git tag as `VERSION` automatically.
|
||||
|
||||
### Docker Compose
|
||||
|
||||
|
||||
Reference in New Issue
Block a user