Skip to content

Commit dd30fb2

Browse files
committed
Tune goreleaser config
Signed-off-by: Sylvain Rabot <[email protected]>
1 parent 0c56450 commit dd30fb2

File tree

1 file changed

+12
-26
lines changed

1 file changed

+12
-26
lines changed

.goreleaser.yml

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -40,36 +40,22 @@ checksum:
4040
- glob: 'terraform-registry-manifest.json'
4141
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
4242
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
43-
publishers:
44-
- checksum: true
45-
# Terraform CLI 0.10 - 0.11 perform discovery via HTTP headers on releases.hashicorp.com
46-
# For providers which have existed since those CLI versions, exclude
47-
# discovery by setting the protocol version headers to 5.
48-
env:
49-
- HC_RELEASES_HOST={{ .Env.HC_RELEASES_HOST }}
50-
- HC_RELEASES_KEY={{ .Env.HC_RELEASES_KEY }}
51-
cmd: |
52-
hc-releases upload -product {{ .ProjectName }} -version {{ .Version }} -file={{ .ArtifactPath }}={{ .ArtifactName }} -header=x-terraform-protocol-version=5 -header=x-terraform-protocol-versions=5.0
53-
extra_files:
54-
- glob: 'terraform-registry-manifest.json'
55-
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
56-
name: upload
57-
signature: true
5843
release:
44+
github:
45+
owner: sylr
46+
name: terraform-provider-aws
5947
extra_files:
6048
- glob: 'terraform-registry-manifest.json'
6149
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
62-
ids:
63-
- none
6450
signs:
65-
- args: ["sign", "--dearmor", "--file", "${artifact}", "--out", "${signature}"]
66-
artifacts: checksum
67-
cmd: signore
68-
signature: ${artifact}.sig
69-
- args: ["sign", "--dearmor", "--file", "${artifact}", "--out", "${signature}"]
70-
artifacts: checksum
71-
cmd: signore
72-
id: key-id
73-
signature: ${artifact}.72D7468F.sig
51+
- artifacts: checksum
52+
args:
53+
- "--batch"
54+
- "--local-user"
55+
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
56+
- "--output"
57+
- "${signature}"
58+
- "--detach-sign"
59+
- "${artifact}"
7460
snapshot:
7561
name_template: "{{ .Tag }}-next"

0 commit comments

Comments
 (0)