feat: show version on website

Signed-off-by: skidoodle <contact@albert.lol>
This commit is contained in:
2026-01-19 01:31:28 +01:00
parent 2bcf339408
commit f0336b21b8
6 changed files with 39 additions and 4 deletions
+2 -1
View File
@@ -9,10 +9,11 @@ COPY . .
ARG TARGETOS
ARG TARGETARCH
ARG VERSION=dev
RUN --mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build \
-ldflags="-s -w" \
-ldflags="-s -w -X github.com/skidoodle/safebin/internal/app.Version=$VERSION" \
-trimpath \
-o /app/safebin .