add configs for reproducible builds
@@ -19,10 +19,12 @@ builds:
goarch: arm64
env:
- CGO_ENABLED=0
+ mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- - -s -w -X=main.version={{.Version}}
+ - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }}
+
# Archive customization
archives:
