Skip to content

Commit

Permalink
Merge pull request #6 from hacdias/main
Browse files Browse the repository at this point in the history
chore: omit debug information release builds (hacdias#185)
  • Loading branch information
Kosette authored Sep 14, 2024
2 parents 21844c1 + 189af88 commit 84693d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ builds:
flags:
- '-trimpath'
ldflags:
- '-X github.com/hacdias/webdav/v5/cmd.version={{.Version}}'
- '-s -w -X github.com/hacdias/webdav/v5/cmd.version={{.Version}}'
goos:
- darwin
- linux
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY ./go.sum ./
RUN go mod download

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

Expand Down

0 comments on commit 84693d3

Please sign in to comment.