2025-04-11 13:59:10 +00:00
# Make sure to check the documentation at http://goreleaser.com
version : 2
builds :
- ldflags :
- -w -s -X "github.com/kairos-io/immucore/internal/version.version={{.Tag}}" -X "github.com/kairos-io/immucore/internal/version.gitCommit={{.Commit}}"
env :
- CGO_ENABLED=0
goos :
- linux
goarch :
- amd64
- arm64
binary : '{{ .ProjectName }}'
id : default
- ldflags :
- w -s -X "github.com/kairos-io/immucore/internal/version.version={{.Tag}}" -X "github.com/kairos-io/immucore/internal/version.gitCommit={{.Commit}}"
env :
- CGO_ENABLED=1
- GOEXPERIMENT=boringcrypto
goos :
- linux
goarch :
- amd64
binary : '{{ .ProjectName }}'
id : fips-amd64
2025-04-16 09:05:47 +00:00
hooks :
post :
- bash -c 'set -e; go version {{.Path}} | grep boringcrypto || (echo "boringcrypto not found" && exit 1)'
2025-04-11 13:59:10 +00:00
- ldflags :
- w -s -X "github.com/kairos-io/immucore/internal/version.version={{.Tag}}" -X "github.com/kairos-io/immucore/internal/version.gitCommit={{.Commit}}"
env :
- CGO_ENABLED=1
- GOEXPERIMENT=boringcrypto
- CC=aarch64-linux-gnu-gcc
goos :
- linux
goarch :
- arm64
binary : '{{ .ProjectName }}'
id : fips-arm64
2025-04-16 09:05:47 +00:00
hooks :
post :
- bash -c 'set -e; go version {{.Path}} | grep boringcrypto || (echo "boringcrypto not found" && exit 1)'
2025-04-11 13:59:10 +00:00
source :
enabled : true
name_template : '{{ .ProjectName }}-{{ .Tag }}-source'
archives :
- id : default-archive
ids :
- default
2025-04-11 16:35:49 +00:00
name_template : '{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
2025-04-11 13:59:10 +00:00
- id : fips-archive
ids :
- fips-arm64
- fips-amd64
2025-04-11 16:35:49 +00:00
name_template : '{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}-fips'
2025-04-11 13:59:10 +00:00
checksum :
name_template : '{{ .ProjectName }}-{{ .Tag }}-checksums.txt'
snapshot :
version_template : "{{ .Tag }}-next"
changelog :
sort : asc
filters :
exclude :
- '^docs:'
- '^test:'
- '^Merge pull request'
env :
- GOSUMDB=sum.golang.org
before :
hooks :
- go mod tidy