This commit is contained in:
Krzysztof
2025-08-03 15:03:52 +02:00
parent 34336b2de6
commit 3899e761f2
2 changed files with 7 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
go build -o uptimemonitor \
-ldflags "-X uptimemonitor/pkg/version.Version=$(git describe --tags)" \
-ldflags "-X uptimemonitor/pkg/version.Version=${VERSION:-$(git describe --tags)}" \
./cmd/uptimemonitor
FROM alpine:latest