-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yaml
63 lines (63 loc) · 1.85 KB
/
.goreleaser.yaml
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
builds:
- ldflags:
- -X main.version={{.Version}} -X main.commit={{.Commit}} -s -w
main: ./cmd/root/main.go
goarch:
- amd64
- arm
- arm64
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarm:
- 6
- 7
dockers:
- image_templates:
- "sudermanjr/riley:{{ .Tag }}-linux-amd64"
- "sudermanjr/riley:v{{ .Major }}-linux-amd64"
- "sudermanjr/riley:v{{ .Major }}.{{ .Minor }}-linux-amd64"
use: buildx
dockerfile: Dockerfile
goarch: amd64
goos: linux
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "sudermanjr/riley:{{ .Tag }}-linux-arm64v8"
- "sudermanjr/riley:v{{ .Major }}-linux-arm64v8"
- "sudermanjr/riley:v{{ .Major }}.{{ .Minor }}-linux-arm64v8"
use: buildx
goarch: arm64
goos: linux
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/arm64/v8"
- image_templates:
- "sudermanjr/riley:{{ .Tag }}-linux-armv7"
- "sudermanjr/riley:v{{ .Major }}-linux-armv7"
- "sudermanjr/riley:v{{ .Major }}.{{ .Minor }}-linux-armv7"
use: buildx
goarch: arm64
goos: linux
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/arm/v7"
docker_manifests:
- name_template: sudermanjr/riley:{{ .Tag }}
image_templates:
- "sudermanjr/riley:{{ .Tag }}-linux-amd64"
- "sudermanjr/riley:{{ .Tag }}-linux-arm64v8"
- "sudermanjr/riley:{{ .Tag }}-linux-armv7"
- name_template: sudermanjr/riley:v{{ .Major }}
image_templates:
- "sudermanjr/riley:v{{ .Major }}-linux-amd64"
- "sudermanjr/riley:v{{ .Major }}-linux-arm64v8"
- "sudermanjr/riley:v{{ .Major }}-linux-armv7"
- name_template: sudermanjr/riley:v{{ .Major }}.{{ .Minor }}
image_templates:
- "sudermanjr/riley:v{{ .Major }}.{{ .Minor }}-linux-amd64"
- "sudermanjr/riley:v{{ .Major }}.{{ .Minor }}-linux-arm64v8"
- "sudermanjr/riley:v{{ .Major }}.{{ .Minor }}-linux-armv7"