Skip to content

Commit d8766fe

Browse files
committed
ci: update go releaser
Signed-off-by: moabu <47318409+moabu@users.noreply.github.com>
1 parent 37cdea1 commit d8766fe

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

.goreleaser.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
1-
# Visit https://goreleaser.com for documentation on how to customize this
2-
# behavior.
31
version: 2
2+
43
before:
54
hooks:
6-
# this is just an example and not a requirement for provider building/publishing
75
- go mod tidy
6+
87
builds:
9-
- env:
10-
# goreleaser does not work with CGO, it could also complicate
11-
# usage by users in CI/CD systems like Terraform Cloud where
12-
# they are unable to install libraries.
13-
- CGO_ENABLED=0
14-
mod_timestamp: '{{ .CommitTimestamp }}'
15-
flags:
16-
- -trimpath
17-
ldflags:
18-
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
19-
goos:
20-
- freebsd
21-
- windows
22-
- linux
23-
- darwin
24-
goarch:
25-
- amd64
26-
- '386'
27-
- arm
28-
- arm64
29-
ignore:
30-
- goos: darwin
31-
goarch: '386'
32-
binary: '{{ .ProjectName }}_v{{ .Version }}'
8+
- env:
9+
- CGO_ENABLED=0
10+
mod_timestamp: '{{ .CommitTimestamp }}'
11+
flags:
12+
- -trimpath
13+
ldflags:
14+
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
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+
- goos: windows
29+
goarch: arm
30+
binary: '{{ .ProjectName }}_v{{ .Version }}'
31+
3332
archives:
34-
- format: zip
35-
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
33+
- name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
34+
formats:
35+
- zip
36+
3637
checksum:
3738
extra_files:
3839
- glob: 'terraform-registry-manifest.json'
3940
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
4041
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
4142
algorithm: sha256
43+
4244
signs:
4345
- artifacts: checksum
4446
args:
45-
# if you are using this in a GitHub action or some other automated pipeline, you
46-
# need to pass the batch flag to indicate its not interactive.
4747
- "--batch"
4848
- "--local-user"
49-
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
49+
- "{{ .Env.GPG_FINGERPRINT }}"
5050
- "--output"
5151
- "${signature}"
5252
- "--detach-sign"
5353
- "${artifact}"
54+
5455
release:
5556
extra_files:
5657
- glob: 'terraform-registry-manifest.json'
5758
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
58-
# If you want to manually examine the release before its live, uncomment this line:
59-
# draft: true
59+
6060
changelog:
6161
disable: true

0 commit comments

Comments
 (0)