forked from Permify/permify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
94 lines (94 loc) · 2.43 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
---
project_name: permify
universal_binaries:
- replace: true
builds:
-
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
- windows
- darwin
ldflags:
- "-s -w"
main: ./cmd/permify
mod_timestamp: "{{ .CommitTimestamp }}"
brews:
-
dependencies:
-
name: go
type: build
description: "Permify is an open-source authorization service & policy engine based on Google Zanzibar."
download_strategy: CurlDownloadStrategy
folder: Formula
homepage: "https://github.com/Permify/permify"
license: "GNU General Public License v3.0"
custom_block: |
head "https://github.com/Permify/permify.git", :branch => "master"
install: |
if !File.exists? "permify"
system "go build --ldflags ./cmd/permify"
end
bin.install "permify"
tap:
name: homebrew-tap
owner: permify
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: permify-bot
email: [email protected]
url_template: "https://github.com/Permify/permify/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
docker_manifests:
-
image_templates:
- "ghcr.io/permify/permify:v{{ .Version }}-amd64"
- "ghcr.io/permify/permify:v{{ .Version }}-arm64"
name_template: "ghcr.io/permify/permify:v{{ .Version }}"
-
image_templates:
- "ghcr.io/permify/permify:v{{ .Version }}-amd64"
- "ghcr.io/permify/permify:v{{ .Version }}-arm64"
name_template: "ghcr.io/permify/permify:latest"
dockers:
-
build_flag_templates:
- "--platform=linux/arm64"
dockerfile: Dockerfile.release
goarch: arm64
image_templates:
- "ghcr.io/permify/permify:v{{ .Version }}-arm64"
use: buildx
-
build_flag_templates:
- "--platform=linux/amd64"
dockerfile: Dockerfile.release
goarch: amd64
image_templates:
- "ghcr.io/permify/permify:v{{ .Version }}-amd64"
use: buildx
nfpms:
-
description: "Permify is an open-source authorization service & policy engine based on Google Zanzibar."
formats:
- deb
- rpm
- apk
homepage: "https://permify.co"
license: "GNU General Public License v3.0"
maintainer: "permify <[email protected]>"
vendor: "permify inc."
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
checksum:
name_template: checksums.txt