-
Notifications
You must be signed in to change notification settings - Fork 26
/
.goreleaser.yml
171 lines (163 loc) · 4.87 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
---
version: 2
builds:
- id: "linux-amd64-gnu"
goos: ["linux"]
goarch: ["amd64"]
env: ["CC=x86_64-unknown-linux-gnu-gcc", "CGO_ENABLED=1"]
main: &main "./cmd/zed"
binary: &binary "zed"
mod_timestamp: &mod_timestamp "{{ .CommitTimestamp }}"
flags: &flags ["-trimpath"]
asmflags: &asmflags ["all=-trimpath={{ .Env.GITHUB_WORKSPACE }}"]
gcflags: &gcflags ["all=-trimpath={{ .Env.GITHUB_WORKSPACE }}"]
ldflags: &ldflags
- "-s -w"
- "-X github.com/jzelinskie/cobrautil/v2.Version=v{{ .Version }}"
- id: "linux-amd64-musl"
goos: ["linux"]
goarch: ["amd64"]
env: ["CC=x86_64-unknown-linux-musl-gcc", "CGO_ENABLED=1"]
main: *main
binary: *binary
mod_timestamp: *mod_timestamp
flags: *flags
asmflags: *asmflags
gcflags: *gcflags
ldflags: *ldflags
- id: "linux-arm64-gnu"
goos: ["linux"]
goarch: ["arm64"]
env: ["CC=aarch64-unknown-linux-gnu-gcc", "CGO_ENABLED=1"]
main: *main
binary: *binary
mod_timestamp: *mod_timestamp
flags: *flags
asmflags: *asmflags
gcflags: *gcflags
ldflags: *ldflags
- id: "linux-arm64-musl"
goos: ["linux"]
goarch: ["arm64"]
env: ["CC=aarch64-unknown-linux-musl-gcc", "CGO_ENABLED=1"]
main: *main
binary: *binary
mod_timestamp: *mod_timestamp
flags: *flags
asmflags: *asmflags
gcflags: *gcflags
ldflags: *ldflags
- id: "windows-amd64"
goos: ["windows"]
goarch: ["amd64"]
env: ["CC=x86_64-w64-mingw32-gcc", "CGO_ENABLED=1"]
main: *main
binary: *binary
mod_timestamp: *mod_timestamp
flags: *flags
asmflags: *asmflags
gcflags: *gcflags
ldflags: *ldflags
- id: "darwin-amd64"
goos: ["darwin"]
goarch: ["amd64"]
env: ["CGO_ENABLED=1"]
main: *main
binary: *binary
mod_timestamp: *mod_timestamp
flags: *flags
asmflags: *asmflags
gcflags: *gcflags
ldflags: *ldflags
- id: "darwin-arm64"
goos: ["darwin"]
goarch: ["arm64"]
env: ["CGO_ENABLED=1"]
main: *main
binary: *binary
mod_timestamp: *mod_timestamp
flags: *flags
asmflags: *asmflags
gcflags: *gcflags
ldflags: *ldflags
archives:
- id: "gnu"
builds:
- "linux-amd64-gnu"
- "linux-arm64-gnu"
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}_gnu"
- id: "musl"
builds:
- "linux-amd64-musl"
- "linux-arm64-musl"
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}_musl"
- id: "other"
builds:
- "darwin-amd64"
- "darwin-arm64"
- "windows-amd64"
nfpms:
- id: "gnu"
vendor: &vendor "authzed inc."
homepage: &homepage "https://authzed.com/"
maintainer: &maintainer "authzed <[email protected]>"
description: &description "manage Authzed from your command line."
license: &license "Apache 2.0"
epoch: &epoch "0"
builds: ["linux-amd64-gnu", "linux-arm64-gnu"]
formats: ["deb", "rpm"]
- id: "musl"
vendor: *vendor
homepage: *homepage
maintainer: *maintainer
description: *description
license: *license
epoch: *epoch
builds: ["linux-amd64-musl", "linux-arm64-musl"]
formats: ["apk"]
furies:
- account: "authzed"
secret_name: "GEMFURY_PUSH_TOKEN"
brews:
- description: "command-line client for managing SpiceDB"
homepage: "https://github.com/authzed/zed"
license: "Apache-2.0"
dependencies:
- name: "go"
type: "build"
custom_block: |
head "https://github.com/authzed/zed.git", :branch => "main"
url_template: "https://github.com/authzed/zed/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
install: |
if build.head?
versionVar = "github.com/jzelinskie/cobrautil/v2.Version"
versionCmd = "$(git describe --always --abbrev=7 --dirty --tags)"
system "go build --ldflags '-s -w -X #{versionVar}=#{versionCmd}' ./cmd/zed"
end
bin.install "zed"
generate_completions_from_executable(bin/"zed", "completion", shells: [:bash, :zsh, :fish])
test: |
system "#{bin}/zed version"
repository:
owner: "authzed"
name: "homebrew-tap"
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
ids: ["gnu", "other"]
commit_author:
name: "authzedbot"
email: "[email protected]"
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
directory: "Formula"
skip_upload: "auto"
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
use: "github-native"
sort: "asc"
release:
prerelease: "auto"
footer: |
## Docker Images
This release is available at `authzed/zed:v{{ .Version }}`, `quay.io/authzed/zed:v{{ .Version }}`, `ghcr.io/authzed/zed:v{{ .Version }}`