File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Visit https://goreleaser.com for documentation on how to customize this
2
+ # behavior.
3
+ before :
4
+ hooks :
5
+ # this is just an example and not a requirement for provider building/publishing
6
+ - go mod tidy
1
7
builds :
2
8
- env :
9
+ # goreleaser does not work with CGO, it could also complicate
10
+ # usage by users in CI/CD systems like Terraform Cloud where
11
+ # they are unable to install libraries.
3
12
- CGO_ENABLED=0
4
13
mod_timestamp : ' {{ .CommitTimestamp }}'
5
14
flags :
@@ -24,17 +33,28 @@ archives:
24
33
- format : zip
25
34
name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
26
35
checksum :
36
+ extra_files :
37
+ - glob : ' terraform-registry-manifest.json'
38
+ name_template : ' {{ .ProjectName }}_{{ .Version }}_manifest.json'
27
39
name_template : ' {{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
28
40
algorithm : sha256
29
41
signs :
30
42
- artifacts : checksum
31
43
args :
44
+ # if you are using this in a GitHub action or some other automated pipeline, you
45
+ # need to pass the batch flag to indicate its not interactive.
32
46
- " --batch"
33
47
- " --local-user"
34
- - " {{ .Env.GPG_FINGERPRINT }}"
48
+ - " {{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
35
49
- " --output"
36
50
- " ${signature}"
37
51
- " --detach-sign"
38
52
- " ${artifact}"
53
+ release :
54
+ extra_files :
55
+ - glob : ' terraform-registry-manifest.json'
56
+ name_template : ' {{ .ProjectName }}_{{ .Version }}_manifest.json'
57
+ # If you want to manually examine the release before its live, uncomment this line:
58
+ # draft: true
39
59
changelog :
40
60
skip : true
You can’t perform that action at this time.
0 commit comments