File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Copyright (c) HashiCorp, Inc.
2+ # SPDX-License-Identifier: MPL-2.0
3+
4+ # Visit https://goreleaser.com for documentation on how to customize this
5+ # behavior.
6+ builds :
7+ - env :
8+ # goreleaser does not work with CGO, it could also complicate
9+ # usage by users in CI/CD systems like Terraform Cloud where
10+ # they are unable to install libraries.
11+ - CGO_ENABLED=0
12+ mod_timestamp : ' {{ .CommitTimestamp }}'
13+ flags :
14+ - -trimpath
15+ ldflags :
16+ - ' -s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
17+ goos :
18+ - freebsd
19+ - windows
20+ - linux
21+ - darwin
22+ goarch :
23+ - amd64
24+ - ' 386'
25+ - arm
26+ - arm64
27+ ignore :
28+ - goos : darwin
29+ goarch : ' 386'
30+ binary : ' {{ .ProjectName }}_v{{ .Version }}'
31+ archives :
32+ - format : zip
33+ name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
34+ checksum :
35+ extra_files :
36+ - glob : ' terraform-registry-manifest.json'
37+ name_template : ' {{ .ProjectName }}_{{ .Version }}_manifest.json'
38+ name_template : ' {{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
39+ algorithm : sha256
40+ signs :
41+ - artifacts : checksum
42+ args :
43+ # if you are using this in a GitHub action or some other automated pipeline, you
44+ # need to pass the batch flag to indicate its not interactive.
45+ - " --batch"
46+ - " --local-user"
47+ - " {{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
48+ - " --output"
49+ - " ${signature}"
50+ - " --detach-sign"
51+ - " ${artifact}"
52+ release :
53+ extra_files :
54+ - glob : ' terraform-registry-manifest.json'
55+ name_template : ' {{ .ProjectName }}_{{ .Version }}_manifest.json'
56+ # If you want to manually examine the release before its live, uncomment this line:
57+ # draft: true
58+ changelog :
59+ skip : true
You can’t perform that action at this time.
0 commit comments