11# Visit https://goreleaser.com for documentation on how to customize this
22# behavior.
3+
34before :
45 hooks :
5- # this is just an example and not a requirement for provider building/publishing
66 - go mod tidy
77builds :
88 - env :
99 # goreleaser does not work with CGO, it could also complicate
1010 # usage by users in CI/CD systems like Terraform Cloud where
1111 # they are unable to install libraries.
1212 - CGO_ENABLED=0
13- mod_timestamp : ' {{ .CommitTimestamp }}'
13+ mod_timestamp : " {{ .CommitTimestamp }}"
1414 flags :
1515 - -trimpath
1616 ldflags :
17- - ' -s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
17+ - " -s -w -X main.version={{.Version}} -X main.commit={{.Commit}}"
1818 goos :
1919 - freebsd
2020 - windows
2121 - linux
2222 - darwin
2323 goarch :
2424 - amd64
25- - ' 386'
25+ - " 386"
2626 - arm
2727 - arm64
2828 ignore :
2929 - goos : darwin
30- goarch : ' 386'
31- binary : ' {{ .ProjectName }}_v{{ .Version }}'
30+ goarch : " 386"
31+ binary : " {{ .ProjectName }}_v{{ .Version }}"
3232archives :
3333 - format : zip
34- name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
34+ name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
3535checksum :
3636 extra_files :
37- - glob : ' terraform-registry-manifest.json'
38- name_template : ' {{ .ProjectName }}_{{ .Version }}_manifest.json'
39- name_template : ' {{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
37+ - glob : " terraform-registry-manifest.json"
38+ name_template : " {{ .ProjectName }}_{{ .Version }}_manifest.json"
39+ name_template : " {{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
4040 algorithm : sha256
4141signs :
4242 - artifacts : checksum
@@ -45,16 +45,16 @@ signs:
4545 # need to pass the batch flag to indicate its not interactive.
4646 - " --batch"
4747 - " --local-user"
48- - " {{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
48+ - " {{ .Env.GPG_FINGERPRINT }}"
4949 - " --output"
5050 - " ${signature}"
5151 - " --detach-sign"
5252 - " ${artifact}"
5353release :
5454 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
55+ - glob : " terraform-registry-manifest.json"
56+ name_template : " {{ .ProjectName }}_{{ .Version }}_manifest.json"
57+ # Manually examine the release before it goes live :
58+ draft : true
5959changelog :
6060 skip : true
0 commit comments