Skip to content

Commit bd455a0

Browse files
authored
Merge pull request #16 from ovh/fix-goreleaser
Fix goreleaser
2 parents 9c407ba + dfdbd01 commit bd455a0

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.goreleaser.yml

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Visit https://goreleaser.com for documentation on how to customize this
22
# behavior.
3+
version: 2
34
before:
45
hooks:
56
# this is just an example and not a requirement for provider building/publishing
@@ -10,11 +11,11 @@ builds:
1011
# usage by users in CI/CD systems like Terraform Cloud where
1112
# they are unable to install libraries.
1213
- CGO_ENABLED=0
13-
mod_timestamp: '{{ .CommitTimestamp }}'
14+
mod_timestamp: "{{ .CommitTimestamp }}"
1415
flags:
1516
- -trimpath
1617
ldflags:
17-
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
18+
- "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}"
1819
goos:
1920
- freebsd
2021
- windows
@@ -23,15 +24,15 @@ builds:
2324
goarch:
2425
- amd64
2526
- arm64
26-
binary: '{{ .ProjectName }}_v{{ .Version }}'
27+
binary: "{{ .ProjectName }}_v{{ .Version }}"
2728
archives:
2829
- format: zip
29-
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
30+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
3031
checksum:
3132
extra_files:
32-
- glob: 'terraform-registry-manifest.json'
33-
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
34-
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
33+
- glob: "terraform-registry-manifest.json"
34+
name_template: "{{ .ProjectName }}_{{ .Version }}_manifest.json"
35+
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
3536
algorithm: sha256
3637
signs:
3738
- artifacts: checksum
@@ -40,16 +41,17 @@ signs:
4041
# need to pass the batch flag to indicate its not interactive.
4142
- "--batch"
4243
- "--local-user"
43-
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
44+
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
4445
- "--output"
4546
- "${signature}"
4647
- "--detach-sign"
4748
- "${artifact}"
4849
release:
4950
extra_files:
50-
- glob: 'terraform-registry-manifest.json'
51-
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
51+
- glob: "terraform-registry-manifest.json"
52+
name_template: "{{ .ProjectName }}_{{ .Version }}_manifest.json"
5253
# If you want to manually examine the release before its live, uncomment this line:
5354
draft: true
5455
changelog:
55-
disable: true
56+
disable: false
57+
use: github

0 commit comments

Comments
 (0)