-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
34 lines (34 loc) · 1.1 KB
/
.goreleaser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
builds:
- main: ./cmd
binary: storage
ldflags:
# Sets the version variable in the build package to the build version prefixed with a 'v'
# Sets the main.date to a static date for checksum verification. See https://goreleaser.com/customization/builds/#reproducible-builds.
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser -X github.com/storacha/storage/pkg/build.version=v{{.Version}}
goos:
- linux
- windows
- darwin
goarch:
- 'amd64'
- 'arm64'
# Change to a static date for checksum verification. See https://goreleaser.com/customization/builds/#reproducible-builds.
mod_timestamp: '{{.CommitTimestamp}}'
env:
- CGO_ENABLED=0
universal_binaries:
- replace: true
archives:
- format_overrides:
- goos: windows
format: zip
- goos: darwin
format: zip
name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- if eq .Os "darwin" }}mac_os
{{- else }}{{ .Os }}{{ end }}_{{ .Arch }}
release:
mode: keep-existing
changelog:
skip: true