-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yml
48 lines (45 loc) · 1.58 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
builds:
- ldflags:
- -s -w -X github.com/k-kinzal/pr/cmd.version={{.Version}}
goos:
- linux
- darwin
goarch:
- amd64
- arm64
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
files:
- LICENSE
dockers:
- image_templates:
- docker.io/kinzal/{{ .ProjectName }}:latest-amd64
- docker.io/kinzal/{{ .ProjectName }}:{{ .Version }}-amd64
- docker.io/kinzal/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}-amd64
use: buildx
goos: linux
goarch: amd64
build_flag_templates:
- --platform=linux/amd64
- image_templates:
- docker.io/kinzal/{{ .ProjectName }}:latest-arm64
- docker.io/kinzal/{{ .ProjectName }}:{{ .Version }}-arm64
- docker.io/kinzal/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}-arm64
use: buildx
goos: linux
goarch: arm64
build_flag_templates:
- --platform=linux/arm64
docker_manifests:
- name_template: docker.io/kinzal/{{ .ProjectName }}:latest
image_templates:
- docker.io/kinzal/{{ .ProjectName }}:latest-amd64
- docker.io/kinzal/{{ .ProjectName }}:latest-arm64
- name_template: docker.io/kinzal/{{ .ProjectName }}:{{ .Version }}
image_templates:
- docker.io/kinzal/{{ .ProjectName }}:{{ .Version }}-amd64
- docker.io/kinzal/{{ .ProjectName }}:{{ .Version }}-arm64
- name_template: docker.io/kinzal/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}
image_templates:
- docker.io/kinzal/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}-amd64
- docker.io/kinzal/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}-arm64