Skip to content

Commit 15210c3

Browse files
committedFeb 15, 2023
goreleaser added
1 parent 3f77790 commit 15210c3

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
 

‎.goreleaser.yaml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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
7+
builds:
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+
- 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+
release:
41+
extra_files:
42+
- glob: 'terraform-registry-manifest.json'
43+
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
44+
# If you want to manually examine the release before its live, uncomment this line:
45+
# draft: true
46+
changelog:
47+
skip: true
48+

‎terraform-registry-manifest.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"version": 1,
3+
"metadata": {
4+
"protocol_versions": ["6.0"]
5+
}
6+
}
7+

0 commit comments

Comments
 (0)
Please sign in to comment.