Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 26 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,33 @@ before:
- go mod download

archives:
- files:
- src: LICENSE
dst: LICENSE.txt
- id: azmpf
ids:
- azmpf
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
formats:
- zip
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
- tar.gz
format_overrides:
- goos: windows
formats:
- zip
files:
- none*

builds:
- dir: cmd
- id: azmpf
binary: "{{ .ProjectName }}"
dir: cmd
env:
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .Date }}
- -s -w
- -X main.version={{ .Version }}
- -X main.commit={{ .Commit }}
- -X main.date={{ .Date }}
goos:
- windows
- linux
Expand All @@ -42,15 +53,19 @@ builds:
goarch: "386"
- goos: windows
goarch: arm
binary: "{{ .ProjectName }}_v{{ .Version }}"
goarm: "6"

sboms:
- id: default
disable: false
- id: archive
artifacts: archive
- id: source
artifacts: source
- id: binary
artifacts: binary

checksum:
algorithm: sha256
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
name_template: "{{ .ProjectName }}_SHA256SUMS.txt"

signs:
- artifacts: checksum
Expand Down
Loading