1
1
# Visit https://goreleaser.com for documentation on how to customize this
2
2
# behavior.
3
+ version : 2
3
4
before :
4
5
hooks :
5
6
# this is just an example and not a requirement for provider building/publishing
@@ -10,11 +11,11 @@ builds:
10
11
# usage by users in CI/CD systems like Terraform Cloud where
11
12
# they are unable to install libraries.
12
13
- CGO_ENABLED=0
13
- mod_timestamp : ' {{ .CommitTimestamp }}'
14
+ mod_timestamp : " {{ .CommitTimestamp }}"
14
15
flags :
15
16
- -trimpath
16
17
ldflags :
17
- - ' -s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
18
+ - " -s -w -X main.version={{.Version}} -X main.commit={{.Commit}}"
18
19
goos :
19
20
- freebsd
20
21
- windows
@@ -23,15 +24,15 @@ builds:
23
24
goarch :
24
25
- amd64
25
26
- arm64
26
- binary : ' {{ .ProjectName }}_v{{ .Version }}'
27
+ binary : " {{ .ProjectName }}_v{{ .Version }}"
27
28
archives :
28
29
- format : zip
29
- name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
30
+ name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
30
31
checksum :
31
32
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"
35
36
algorithm : sha256
36
37
signs :
37
38
- artifacts : checksum
@@ -40,16 +41,17 @@ signs:
40
41
# need to pass the batch flag to indicate its not interactive.
41
42
- " --batch"
42
43
- " --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
44
45
- " --output"
45
46
- " ${signature}"
46
47
- " --detach-sign"
47
48
- " ${artifact}"
48
49
release :
49
50
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"
52
53
# If you want to manually examine the release before its live, uncomment this line:
53
54
draft : true
54
55
changelog :
55
- disable : true
56
+ disable : false
57
+ use : github
0 commit comments