Skip to content

Commit

Permalink
still fixin .gorelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulo Sampaio committed Feb 18, 2021
1 parent 4bb43be commit 3e03c24
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .goreleaser
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
project_name: terraform-provider-spinnaker
builds:
- main: ./main.go
binary: terraform-provider-spinnaker
ldflags:
- -s -w
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
env:
- CGO_ENABLED=0
goos:
Expand All @@ -13,13 +12,29 @@ builds:
goarch:
- 386
- amd64
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
- format: binary
files:
- none*
replacements:
386: i386
amd64: x86_64
- format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256
signs:
- artifacts: checksum
args:
- "--batch"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
release:
github:
owner: Bonial-International-GmbH
Expand Down

0 comments on commit 3e03c24

Please sign in to comment.