-
Notifications
You must be signed in to change notification settings - Fork 225
/
nightly.goreleaser.yml
63 lines (63 loc) · 2.17 KB
/
nightly.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
---
version: 2
builds:
-
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
ldflags:
- "-s -w"
main: ./cmd/permify
mod_timestamp: "{{ .CommitTimestamp }}"
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
goos: linux
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
goos: linux
image_templates:
- "ghcr.io/permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}-amd64"
- "permify/permify{{ if .IsNightly }}-beta{{ end }}:v{{ .Version }}-amd64"
use: buildx
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
nightly:
name_template: "{{ incpatch .Version }}-{{ .ShortCommit }}"