Skip to content

Commit e2d3170

Browse files
committed
chore: Update goreleaser configuration to version 2 and adjust formatting
1 parent effd139 commit e2d3170

File tree

1 file changed

+48
-53
lines changed

1 file changed

+48
-53
lines changed

.goreleaser.yml

+48-53
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,58 @@
1+
version: 2
12
archives:
2-
-
3-
format_overrides:
4-
- goos: windows
5-
format: zip
3+
- format_overrides:
4+
- goos: windows
5+
format: zip
66
before:
77
hooks:
88
- go mod download
99
brews:
10-
-
11-
dependencies:
12-
- go
13-
description: Terraform Provider Documentation Tool
14-
directory: Formula
15-
repository:
16-
owner: bflad
17-
name: homebrew-tap
18-
homepage: https://github.com/bflad/tfproviderdocs
19-
install: |
20-
bin.install "tfproviderdocs"
21-
test: |
22-
system "#{bin}/tfproviderdocs -v"
10+
- dependencies:
11+
- go
12+
description: Terraform Provider Documentation Tool
13+
directory: Formula
14+
repository:
15+
owner: bflad
16+
name: homebrew-tap
17+
homepage: https://github.com/bflad/tfproviderdocs
18+
install: |
19+
bin.install "tfproviderdocs"
20+
test: |
21+
system "#{bin}/tfproviderdocs -v"
2322
builds:
24-
-
25-
env:
26-
- CGO_ENABLED=0
27-
goos:
28-
- darwin
29-
- windows
30-
- linux
31-
goarch:
32-
- amd64
33-
- arm64
34-
- 386
35-
ldflags:
36-
- -s -w -X github.com/bflad/tfproviderdocs/version.Version={{.Version}} -X github.com/bflad/tfproviderdocs/version.VersionPrerelease=
37-
main: .
23+
- env:
24+
- CGO_ENABLED=0
25+
goos:
26+
- darwin
27+
- windows
28+
- linux
29+
goarch:
30+
- amd64
31+
- arm64
32+
- 386
33+
ldflags:
34+
- -s -w -X github.com/bflad/tfproviderdocs/version.Version={{.Version}} -X github.com/bflad/tfproviderdocs/version.VersionPrerelease=
35+
main: .
3836
changelog:
39-
skip: true
37+
disable: true
4038
dockers:
41-
-
42-
build_flag_templates:
43-
- "--label=org.label-schema.schema-version=1.0"
44-
- "--label=org.label-schema.version={{.Version}}"
45-
- "--label=org.label-schema.name={{.ProjectName}}"
46-
image_templates:
47-
- 'bflad/tfproviderdocs:{{ .Version }}'
48-
- 'bflad/tfproviderdocs:{{ .Major }}.{{ .Minor }}'
49-
- 'bflad/tfproviderdocs:latest'
39+
- build_flag_templates:
40+
- "--label=org.label-schema.schema-version=1.0"
41+
- "--label=org.label-schema.version={{.Version}}"
42+
- "--label=org.label-schema.name={{.ProjectName}}"
43+
image_templates:
44+
- 'bflad/tfproviderdocs:{{ .Version }}'
45+
- 'bflad/tfproviderdocs:{{ .Major }}.{{ .Minor }}'
46+
- 'bflad/tfproviderdocs:latest'
5047
milestones:
51-
-
52-
close: true
48+
- close: true
5349
signs:
54-
-
55-
artifacts: checksum
56-
args:
57-
- "--batch"
58-
- "--local-user"
59-
- "{{ .Env.GPG_FINGERPRINT }}"
60-
- "--output"
61-
- "${signature}"
62-
- "--detach-sign"
63-
- "${artifact}"
50+
- artifacts: checksum
51+
args:
52+
- "--batch"
53+
- "--local-user"
54+
- "{{ .Env.GPG_FINGERPRINT }}"
55+
- "--output"
56+
- "${signature}"
57+
- "--detach-sign"
58+
- "${artifact}"

0 commit comments

Comments
 (0)