mirror of
https://github.com/bitmagnet-io/bitmagnet.git
synced 2026-05-06 12:27:01 -04:00
Tweak build flags (#272)
This commit is contained in:
@@ -30,6 +30,8 @@ builds:
|
||||
goarch: arm64
|
||||
main: ./main.go
|
||||
binary: bitmagnet
|
||||
ldflags:
|
||||
- "-s -w -X github.com/bitmagnet-io/bitmagnet/internal/version.GitTag={{.Version}}"
|
||||
|
||||
archives:
|
||||
- id: bitmagnet
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ COPY . /build
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
RUN go build -ldflags "-X github.com/bitmagnet-io/bitmagnet/internal/version.GitTag=$(git describe --tags --always --dirty)"
|
||||
RUN go build -ldflags "-s -w -X github.com/bitmagnet-io/bitmagnet/internal/version.GitTag=$(git describe --tags --always --dirty)"
|
||||
|
||||
FROM alpine:3.18
|
||||
|
||||
|
||||
Reference in New Issue
Block a user