forked from authzed/spicedb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
109 lines (109 loc) · 3.82 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
---
builds:
- main: "./cmd/spicedb"
env:
- "CGO_ENABLED=0"
goos:
- "linux"
- "windows"
- "darwin"
goarch:
- "amd64"
- "arm64"
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- "-s -w"
- "-X github.com/jzelinskie/cobrautil.Version={{ .Version }}"
nfpms:
- vendor: "authzed inc."
homepage: "https://spicedb.io"
maintainer: "authzed <[email protected]>"
description: "SpiceDB is a Zanzibar-inspired database that stores, computes, and validates application permissions."
license: "Apache 2.0"
epoch: 0
formats:
- "apk"
- "deb"
- "rpm"
brews:
- tap:
owner: "authzed"
name: "homebrew-tap"
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://github.com/authzed/spicedb/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
download_strategy: "CurlDownloadStrategy"
commit_author:
name: "authzedbot"
email: "[email protected]"
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://authzed.com/"
description: "SpiceDB is a Zanzibar-inspired database that stores, computes, and validates application permissions."
license: "Apache-2.0"
folder: "Formula"
custom_block: |
head "https://github.com/authzed/spicedb.git", :branch => "main"
dependencies:
- name: "go"
type: "build"
test: |
system "#{bin}/spicedb version"
install: |
if !File.exists? "spicedb"
system "go build --ldflags \"-s -w -X github.com/jzelinskie/cobrautil.Version=$(git describe --always --abbrev=7 --dirty)\" ./cmd/spicedb"
end
bin.install "spicedb"
(bash_completion/"spicedb").write Utils.safe_popen_read("#{bin}/spicedb", "completion", "bash")
(zsh_completion/"_spicedb").write Utils.safe_popen_read("#{bin}/spicedb", "completion", "zsh")
(fish_completion/"spicedb.fish").write Utils.safe_popen_read("#{bin}/spicedb", "completion", "fish")
dockers:
# AMD64
- image_templates:
- &amd_image_quay "quay.io/authzed/spicedb:v{{ .Version }}-amd64"
- &amd_image_gh "ghcr.io/authzed/spicedb:v{{ .Version }}-amd64"
- &amd_image_dh "authzed/spicedb:v{{ .Version }}-amd64"
dockerfile: &dockerfile "Dockerfile.release"
goos: "linux"
goarch: "amd64"
use: "buildx"
build_flag_templates:
- "--platform=linux/amd64"
# ARM64
- image_templates:
- &arm_image_quay "quay.io/authzed/spicedb:v{{ .Version }}-arm64"
- &arm_image_gh "ghcr.io/authzed/spicedb:v{{ .Version }}-arm64"
- &arm_image_dh "authzed/spicedb:v{{ .Version }}-arm64"
dockerfile: *dockerfile
goos: "linux"
goarch: "arm64"
use: "buildx"
build_flag_templates:
- "--platform=linux/arm64"
docker_manifests:
# Quay
- name_template: "quay.io/authzed/spicedb:v{{ .Version }}"
image_templates: [*amd_image_quay, *arm_image_quay]
- name_template: "quay.io/authzed/spicedb:latest"
image_templates: [*amd_image_quay, *arm_image_quay]
# GitHub Registry
- name_template: "ghcr.io/authzed/spicedb:v{{ .Version }}"
image_templates: [*amd_image_gh, *arm_image_gh]
- name_template: "ghcr.io/authzed/spicedb:latest"
image_templates: [*amd_image_gh, *arm_image_gh]
# Docker Hub
- name_template: "authzed/spicedb:v{{ .Version }}"
image_templates: [*amd_image_dh, *arm_image_dh]
- name_template: "authzed/spicedb:latest"
image_templates: [*amd_image_dh, *arm_image_dh]
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
use: "github-native"
sort: "asc"
release:
draft: true
prerelease: "auto"
footer: |
## Docker Images
This release is available at `authzed/spicedb:v{{ .Version }}`, `quay.io/authzed/spicedb:v{{ .Version }}`, `ghcr.io/authzed/spicedb:v{{ .Version }}`