Skip to content

Commit 8f918c7

Browse files
committed
adding goreleaser
1 parent de5d4e9 commit 8f918c7

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.goreleaser.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Copyright Ory Corp
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
version: 2
5+
6+
before:
7+
hooks:
8+
- go mod tidy
9+
10+
builds:
11+
- env:
12+
- CGO_ENABLED=0
13+
mod_timestamp: "{{ .CommitTimestamp }}"
14+
flags:
15+
- -trimpath
16+
ldflags:
17+
- "-s -w -X main.version={{ .Version }}"
18+
goos:
19+
- freebsd
20+
- windows
21+
- linux
22+
- darwin
23+
goarch:
24+
- amd64
25+
- "386"
26+
- arm
27+
- arm64
28+
ignore:
29+
- goos: darwin
30+
goarch: "386"
31+
binary: "{{ .ProjectName }}_v{{ .Version }}"
32+
33+
archives:
34+
- formats:
35+
- zip
36+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
37+
38+
checksum:
39+
extra_files:
40+
- glob: "terraform-registry-manifest.json"
41+
name_template: "{{ .ProjectName }}_{{ .Version }}_manifest.json"
42+
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
43+
algorithm: sha256
44+
45+
signs:
46+
- artifacts: checksum
47+
args:
48+
- "--batch"
49+
- "--local-user"
50+
- "{{ .Env.GPG_FINGERPRINT }}"
51+
- "--output"
52+
- "${signature}"
53+
- "--detach-sign"
54+
- "${artifact}"
55+
56+
release:
57+
extra_files:
58+
- glob: "terraform-registry-manifest.json"
59+
name_template: "{{ .ProjectName }}_{{ .Version }}_manifest.json"
60+
61+
changelog:
62+
disable: true

0 commit comments

Comments
 (0)