Skip to content

Commit

Permalink
goreleaser: Reproducible builds (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored Jul 10, 2020
1 parent 6d56b28 commit 5d4e71e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ before:
builds:
-
id: signable
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '-s -w -X "main.version={{ .RawVersion }}" -X "main.prerelease={{ if .IsSnapshot }}snapshot.{{ .ShortCommit }}{{ else }}{{ .Prerelease }}{{ end }}"'
targets:
Expand All @@ -25,6 +28,9 @@ builds:
{{ .Env.CODESIGN_IMAGE }}
sign -product-name={{ .ProjectName }} {{ .Name }}
-
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '-s -w -X "main.version={{ .RawVersion }}" -X "main.prerelease={{ if .IsSnapshot }}snapshot.{{ .ShortCommit }}{{ else }}{{ .Prerelease }}{{ end }}"'
targets:
Expand Down

0 comments on commit 5d4e71e

Please sign in to comment.