mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-22 03:20:41 +08:00
chore: omit debug information release builds (#185)
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user