Skip to content

Commit ca6523a

Browse files
authored
Merge pull request #12 from sunnyx4/develop
Add signs block in goreleaser.yml
2 parents 476aa2a + 85debd3 commit ca6523a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.goreleaser.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ checksum:
4949
name_template: '{{ .ProjectName }}_{{ .Env.PROVIDER_VERSION }}_manifest.json'
5050
name_template: '{{ .ProjectName }}_{{ .Env.PROVIDER_VERSION }}_SHA256SUMS'
5151
algorithm: sha256
52+
signs:
53+
- artifacts: checksum
54+
args:
55+
# if you are using this in a GitHub action or some other automated pipeline, you
56+
# need to pass the batch flag to indicate its not interactive.
57+
- "--batch"
58+
- "--local-user"
59+
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
60+
- "--output"
61+
- "${signature}"
62+
- "--detach-sign"
63+
- "${artifact}"
5264
release:
5365
extra_files:
5466
- glob: 'terraform-registry-manifest.json'

0 commit comments

Comments
 (0)