Skip to content

Commit f743eda

Browse files
committed
chore: add support for goreleaser
Similarly to what we do for datumctl
1 parent 9b2f76a commit f743eda

3 files changed

Lines changed: 92 additions & 97 deletions

File tree

.goreleaser.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# For more information on configuring GoReleaser, refer to the documentation:
2+
# https://goreleaser.com
3+
#
4+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
5+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
6+
version: 2
7+
8+
before:
9+
hooks:
10+
- go mod tidy
11+
- go generate ./...
12+
13+
builds:
14+
- env:
15+
- CGO_ENABLED=0
16+
main: ./cmd/datum-mcp
17+
goos:
18+
- linux
19+
- windows
20+
- darwin
21+
22+
archives:
23+
- format: tar.gz
24+
# this name template makes the OS and Arch compatible with the results of `uname`.
25+
name_template: >-
26+
{{ .ProjectName }}_
27+
{{- title .Os }}_
28+
{{- if eq .Arch "amd64" }}x86_64
29+
{{- else if eq .Arch "386" }}i386
30+
{{- else }}{{ .Arch }}{{ end }}
31+
{{- if .Arm }}v{{ .Arm }}{{ end }}
32+
# use zip for windows archives
33+
format_overrides:
34+
- goos: windows
35+
format: zip
36+
37+
nfpms:
38+
- vendor: Datum Technology, Inc
39+
homepage: https://www.datum.net/
40+
maintainer: support@datum.net
41+
license: Apache 2.0
42+
provides:
43+
- datum-mcp
44+
formats:
45+
- apk
46+
- deb
47+
- rpm
48+
- termux.deb
49+
- archlinux
50+
51+
changelog:
52+
sort: asc
53+
filters:
54+
exclude:
55+
- "^docs:"
56+
- "^test:"
57+
- "^chore:"
58+
59+
sboms:
60+
- artifacts: archive
61+
62+
brews:
63+
- commit_author:
64+
name: Datum Release Bot
65+
email: releases@datum.net
66+
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
67+
directory: Formula
68+
homepage: "https://www.datum.net/"
69+
description: "A network cloud, built on open source."
70+
license: "Apache 2.0"
71+
repository:
72+
owner: datum-cloud
73+
name: homebrew-tap
74+
branch: main

go.mod

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ require (
2929
github.com/go-openapi/jsonreference v0.21.0 // indirect
3030
github.com/go-openapi/swag v0.23.1 // indirect
3131
github.com/godbus/dbus/v5 v5.1.0 // indirect
32-
github.com/gogo/protobuf v1.3.2 // indirect
3332
github.com/google/btree v1.1.3 // indirect
3433
github.com/google/gnostic-models v0.7.0 // indirect
3534
github.com/google/jsonschema-go v0.3.0 // indirect
@@ -42,19 +41,14 @@ require (
4241
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4342
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
4443
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
45-
github.com/onsi/ginkgo/v2 v2.27.2 // indirect
46-
github.com/onsi/gomega v1.38.2 // indirect
4744
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
4845
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
49-
github.com/prometheus/client_golang v1.23.2 // indirect
5046
github.com/prometheus/procfs v0.17.0 // indirect
5147
github.com/spf13/pflag v1.0.9 // indirect
52-
github.com/stretchr/testify v1.11.1 // indirect
5348
github.com/x448/float16 v0.8.4 // indirect
5449
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
5550
go.yaml.in/yaml/v2 v2.4.3 // indirect
5651
go.yaml.in/yaml/v3 v3.0.4 // indirect
57-
golang.org/x/crypto v0.45.0 // indirect
5852
golang.org/x/net v0.47.0 // indirect
5953
golang.org/x/sys v0.38.0 // indirect
6054
golang.org/x/term v0.37.0 // indirect
@@ -64,7 +58,6 @@ require (
6458
gopkg.in/inf.v0 v0.9.1 // indirect
6559
gopkg.in/yaml.v3 v3.0.1 // indirect
6660
k8s.io/api v0.35.0 // indirect
67-
k8s.io/apiextensions-apiserver v0.35.0 // indirect
6861
k8s.io/klog/v2 v2.130.1 // indirect
6962
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect
7063
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect

0 commit comments

Comments
 (0)