diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 392807b..e91cd57 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,8 +1,8 @@ # Make sure to check the documentation at http://goreleaser.com -project_name: kairos-agent +version: 2 builds: - ldflags: - - -w -s -X "github.com/kairos-io/kairos-agent/v2/internal/common.VERSION={{.Tag}}" + - -w -s -X "github.com/kairos-io/kairos-agent/v2/internal/common.VERSION={{.Tag}}" -X "github.com/kairos-io/kairos-agent/v2/internal/common.gitCommit={{.Commit}}" env: - CGO_ENABLED=0 goos: @@ -11,17 +11,47 @@ builds: - amd64 - arm64 binary: '{{ .ProjectName }}' + id: default + - ldflags: + - -w -s -X "github.com/kairos-io/kairos-agent/v2/internal/common.VERSION={{.Tag}}" -X "github.com/kairos-io/kairos-agent/v2/internal/common.gitCommit={{.Commit}}" + env: + - CGO_ENABLED=1 + - GOEXPERIMENT=boringcrypto + goos: + - linux + goarch: + - amd64 + binary: '{{ .ProjectName }}' + id: fips-amd64 + - ldflags: + - -w -s -X "github.com/kairos-io/kairos-agent/v2/internal/common.VERSION={{.Tag}}" -X "github.com/kairos-io/kairos-agent/v2/internal/common.gitCommit={{.Commit}}" + env: + - CGO_ENABLED=1 + - GOEXPERIMENT=boringcrypto + - CC=aarch64-linux-gnu-gcc + goos: + - linux + goarch: + - arm64 + binary: '{{ .ProjectName }}' + id: fips-arm64 source: enabled: true name_template: '{{ .ProjectName }}-{{ .Tag }}-source' archives: - # Default template uses underscores instead of - - - name_template: >- - {{ .ProjectName }}-{{ .Tag }}-{{- title .Os }}-{{- if eq .Arch "amd64" }}x86_64{{- else if eq .Arch "386" }}i386{{- else }}{{ .Arch }}{{ end }}{{- if .Arm }}v{{ .Arm }}{{ end }} + - id: default-archive + ids: + - default + name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' + - id: fips-archive + ids: + - fips-arm64 + - fips-amd64 + name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}-fips' checksum: name_template: '{{ .ProjectName }}-{{ .Tag }}-checksums.txt' snapshot: - name_template: "{{ .Tag }}-next" + version_template: "{{ .Tag }}-next" changelog: sort: asc filters: