Skip to content

Commit 2487f75

Browse files
authored
Add missing .goreleaser.yml (#7)
1 parent 334490c commit 2487f75

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.goreleaser.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Visit https://goreleaser.com for documentation on how to customize this
2+
# behavior.
3+
builds:
4+
- env:
5+
# goreleaser does not work with CGO, it could also complicate
6+
# usage by users in CI/CD systems like Terraform Cloud where
7+
# they are unable to install libraries.
8+
- CGO_ENABLED=0
9+
mod_timestamp: '{{ .CommitTimestamp }}'
10+
flags:
11+
- -trimpath
12+
ldflags:
13+
- "-s -w -X 'github.com/render-oss/mcp-server/pkg/cfg.Version={{ .Version }}'"
14+
goos:
15+
- freebsd
16+
- windows
17+
- linux
18+
- darwin
19+
goarch:
20+
- amd64
21+
- '386'
22+
- arm
23+
- arm64
24+
ignore:
25+
- goos: darwin
26+
goarch: '386'
27+
binary: '{{ .ProjectName }}_v{{ .Version }}'
28+
archives:
29+
- format: zip
30+
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
31+
checksum:
32+
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
33+
algorithm: sha256
34+
signs:
35+
- artifacts: checksum
36+
args:
37+
# if you are using this in a GitHub action or some other automated pipeline, you
38+
# need to pass the batch flag to indicate its not interactive.
39+
- "--batch"
40+
- "--local-user"
41+
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
42+
- "--output"
43+
- "${signature}"
44+
- "--detach-sign"
45+
- "${artifact}"

0 commit comments

Comments
 (0)