Tweak build flags (#272)

This commit is contained in:
mgdigital
2024-06-08 11:44:30 +01:00
committed by GitHub
parent 52daaf888d
commit 251a19f095
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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
View File
@@ -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