Skip to content

Commit

Permalink
Re-align Goreleaser and bump to Go 1.22.5
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Baillie <martin@baillie.id>
  • Loading branch information
martinbaillie committed Aug 3, 2024
1 parent 76ff974 commit 3276b8b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
43 changes: 22 additions & 21 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,35 @@ report_sizes: false

builds:
- goos:
- darwin
- freebsd
- windows
- linux
- freebsd
- netbsd
- openbsd
- solaris
- darwin
goarch:
- "386"
- amd64
- '386'
- arm
- arm64
ignore:
- goos: darwin
goarch: '386'
- goos: linux
goarch: amd64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s
- -w
- -extldflags
- -static
- '-s -w -X main.version={{.Version}} -X main.VersionPrerelease= '
no_unique_dist_dir: true
binary: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'

# A separated build to run the packer-plugins-check only once for a linux_amd64 binary
-
id: plugin-check
- id: plugin-check
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
goarch:
- amd64
hooks:
post:
# This will check plugin compatibility against latest version of Packer
Expand All @@ -38,16 +41,16 @@ builds:
dir: "{{ dir .Path}}"
archives:
- format: binary
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
- format: zip
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'

checksum:
name_template: 'SHA256SUMS'
name_template: '{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS'
algorithm: sha256

signs:
- id: sha256
artifacts: checksum
# signs:
# - id: sha256
# artifacts: checksum

sboms:
- artifacts: binary
Expand All @@ -70,5 +73,3 @@ changelog:
- Merge remote-tracking branch
- Merge branch
- go mod tidy


6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3276b8b

Please sign in to comment.