-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
76 lines (76 loc) · 2.04 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
project_name: yampl
builds:
- ldflags:
- -s -w -X github.com/clevyr/go-yampl/cmd.Version={{.Version}} -X github.com/clevyr/go-yampl/cmd.Commit={{.Commit}}
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^:pencil:"
brews:
- tap:
owner: clevyr
name: homebrew-tap
folder: Formula
dockers:
- &dockers
image_templates:
- ghcr.io/clevyr/{{ .ProjectName }}:{{ .Version }}-amd64
use: buildx
dockerfile: Dockerfile.goreleaser
build_flag_templates:
- "--platform=linux/amd64"
- <<: *dockers
image_templates:
- ghcr.io/clevyr/{{ .ProjectName }}:{{ .Version }}-armv6
goarch: arm
goarm: 6
build_flag_templates:
- "--platform=linux/arm/v7"
- <<: *dockers
image_templates:
- ghcr.io/clevyr/{{ .ProjectName }}:{{ .Version }}-armv7
goarch: arm
goarm: 7
build_flag_templates:
- "--platform=linux/arm/v8"
- <<: *dockers
image_templates:
- ghcr.io/clevyr/{{ .ProjectName }}:{{ .Version }}-arm64v8
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64/v8"
docker_manifests:
- &docker_manifests
name_template: ghcr.io/clevyr/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/clevyr/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/clevyr/{{ .ProjectName }}:{{ .Version }}-armv6
- ghcr.io/clevyr/{{ .ProjectName }}:{{ .Version }}-armv7
- ghcr.io/clevyr/{{ .ProjectName }}:{{ .Version }}-arm64v8
- <<: *docker_manifests
name_template: ghcr.io/clevyr/{{ .ProjectName }}:{{ .Version }}
- <<: *docker_manifests
name_template: ghcr.io/clevyr/{{ .ProjectName }}:{{ .Major }}
- <<: *docker_manifests
name_template: ghcr.io/clevyr/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}