Skip to content

Commit

Permalink
fix: Updated the GoReleaser config.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Nov 10, 2024
1 parent 509a8f9 commit f52cb57
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
version: 2
project_name: terraform-provider-corefunc
dist: ./dist

Expand All @@ -9,7 +10,7 @@ report_sizes: true
builds:
- env:
- CGO_ENABLED=0
mod_timestamp: '{{ .CommitTimestamp }}'
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
Expand All @@ -22,13 +23,13 @@ builds:
- openbsd
- windows
goarch:
- '386'
- "386"
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: '386'
goarch: "386"
- goos: darwin
goarch: arm
- goos: openbsd
Expand All @@ -39,16 +40,16 @@ builds:
goarch: arm
- goos: netbsd
goarch: arm64
binary: '{{ .ProjectName }}_v{{ .Version }}'
binary: "{{ .ProjectName }}_v{{ .Version }}"

# https://goreleaser.com/customization/archive/
archives:
- format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

# https://goreleaser.com/customization/checksum/
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
algorithm: sha256

# https://goreleaser.com/customization/sign/
Expand All @@ -57,7 +58,7 @@ signs:
args:
- --batch
- --local-user
- '{{ .Env.GPG_FINGERPRINT }}' # set this environment variable for your signing key
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
- --output
- ${signature}
- --detach-sign
Expand Down

0 comments on commit f52cb57

Please sign in to comment.