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+ version : 2
2+ project_name : terraform-provider-commercetools
3+
74builds :
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.
12- - CGO_ENABLED=0
13- mod_timestamp : ' {{ .CommitTimestamp }}'
14- flags :
15- - -trimpath
16- ldflags :
17- - ' -s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
18- goos :
19- - freebsd
20- - windows
21- - linux
22- - darwin
23- goarch :
24- - amd64
25- - ' 386'
26- - arm
27- - arm64
28- ignore :
29- - goos : darwin
30- goarch : ' 386'
31- binary : ' {{ .ProjectName }}_v{{ .Version }}'
5+ - env :
6+ # goreleaser does not work with CGO, it could also complicate
7+ # usage by users in CI/CD systems like Terraform Cloud where
8+ # they are unable to install libraries.
9+ - CGO_ENABLED=0
10+ mod_timestamp : ' {{ .CommitTimestamp }}'
11+ flags :
12+ - -trimpath
13+ ldflags :
14+ - ' -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}}'
15+ goos :
16+ - freebsd
17+ - windows
18+ - linux
19+ - darwin
20+ goarch :
21+ - amd64
22+ - ' 386'
23+ - arm
24+ - arm64
25+ ignore :
26+ - goos : darwin
27+ goarch : ' 386'
28+ binary : ' {{ .ProjectName }}_v{{ .Version }}'
29+
3230archives :
33- - format : zip
34- name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
31+ - format : zip
32+ name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
33+
3534checksum :
36- extra_files :
37- - glob : ' terraform-registry-manifest.json'
38- name_template : ' {{ .ProjectName }}_{{ .Version }}_manifest.json'
3935 name_template : ' {{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
4036 algorithm : sha256
37+
38+ changelog :
39+ sort : asc
40+ filters :
41+ exclude :
42+ - " ^docs:"
43+ - " ^test:"
44+
4145signs :
4246 - artifacts : checksum
4347 args :
44- # if you are using this in a GitHub action or some other automated pipeline, you
48+ # if you are using this is a GitHub action or some other automated pipeline, you
4549 # need to pass the batch flag to indicate its not interactive.
4650 - " --batch"
4751 - " --local-user"
@@ -50,11 +54,3 @@ signs:
5054 - " ${signature}"
5155 - " --detach-sign"
5256 - " ${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
59- changelog :
60- skip : true
0 commit comments