chore: omit debug information release builds (#185)

This commit is contained in:
Keith Gaughan
2024-09-08 21:34:26 +02:00
committed by GitHub
parent 4e87e6a613
commit 189af88bc8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ builds:
flags: flags:
- '-trimpath' - '-trimpath'
ldflags: ldflags:
- '-X github.com/hacdias/webdav/v5/cmd.version={{.Version}}' - '-s -w -X github.com/hacdias/webdav/v5/cmd.version={{.Version}}'
goos: goos:
- darwin - darwin
- linux - linux
+1 -1
View File
@@ -11,7 +11,7 @@ COPY ./go.sum ./
RUN go mod download RUN go mod download
COPY . /webdav/ COPY . /webdav/
RUN go build -o main -ldflags="-X 'github.com/hacdias/webdav/v5/cmd.version=$VERSION'" . RUN go build -o main -trimpath -ldflags="-s -w -X 'github.com/hacdias/webdav/v5/cmd.version=$VERSION'" .
FROM scratch FROM scratch