Add version

This commit is contained in:
2026-08-29 21:02:18 +02:00
parent 1b45fb4b8a
commit 712e9d4dce
5 changed files with 70 additions and 2 deletions
+21 -1
View File
@@ -1,3 +1,23 @@
# beam
File transfer service via http
File transfer service via http.
## Versioning
The Dockerfile owns the base application version with the `VERSION` build argument. Docker builds append the current git short hash with `GIT_SHA` so the homepage can display the exact image version near the bottom-left edge.
```sh
./build.sh
```
To push `docker.sdal.tech/beam:latest` after building:
```sh
./build.sh push
```
Local non-Docker builds display `vdev` unless a version is injected manually:
```sh
go build -ldflags "-X main.version=0.1.0-dev" -o beam .
```