forked from Permify/permify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
110 lines (110 loc) · 3.52 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
---
version: 2
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
directory: Formula
homepage: "https://github.com/Permify/permify"
license: "Apache-2.0"
custom_block: |
head "https://github.com/Permify/permify.git", :branch => "master"
install: |-
bin.install "permify"
repository:
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{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}-amd64"
- "ghcr.io/permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}-arm64"
name_template: "ghcr.io/permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}"
-
image_templates:
- "ghcr.io/permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}-amd64"
- "ghcr.io/permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}-arm64"
name_template: "ghcr.io/permify/permify{{ if .IsNightly }}-beta{{ end }}:latest"
-
image_templates:
- "permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}-amd64"
- "permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}-arm64"
name_template: "permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}"
-
image_templates:
- "permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}-amd64"
- "permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}-arm64"
name_template: "permify/permify{{ if .IsNightly }}-beta{{ end }}:latest"
dockers:
-
build_flag_templates:
- "--platform=linux/arm64"
dockerfile: Dockerfile.release
goarch: arm64
image_templates:
- "ghcr.io/permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}-arm64"
- "permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}-arm64"
use: buildx
-
build_flag_templates:
- "--platform=linux/amd64"
dockerfile: Dockerfile.release
goarch: amd64
image_templates:
- "ghcr.io/permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}-amd64"
- "permify/permify{{ if .IsNightly }}-beta{{ end }}: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: "Apache-2.0"
maintainer: "permify <[email protected]>"
vendor: "permify inc."
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
checksum:
name_template: checksums.txt
release:
draft: true
mode: replace
prerelease: auto
footer: |
This version can be found as Docker images at permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }} and ghcr.io/permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}.