-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yml
66 lines (66 loc) · 1.86 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
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0 # Use go resolver for now
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
archives:
- wrap_in_directory: true
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- Merge pull request
dockers:
- goos: linux
goarch: amd64
use: buildx
build_flag_templates:
- --platform=linux/amd64
- &l1 --label=org.opencontainers.image.title={{ .ProjectName }}
- &l2 --label=org.opencontainers.image.description={{ .ProjectName }}
- &l3 --label=org.opencontainers.image.source=https://github.com/jay7x/{{ .ProjectName }}
- &l4 --label=org.opencontainers.image.version={{ .Version }}
- &l5 --label=org.opencontainers.image.created={{ .Now }}
- &l6 --label=org.opencontainers.image.revision={{ .FullCommit }}
- &l7 --label=org.opencontainers.image.licenses=Apache-2.0
image_templates:
- &img_amd64 "ghcr.io/jay7x/{{ .ProjectName }}:{{ .Version }}-amd64"
- goos: linux
goarch: arm64
use: buildx
build_flag_templates:
- --platform=linux/arm64
- *l1
- *l2
- *l3
- *l4
- *l5
- *l6
- *l7
image_templates:
- &img_arm64 "ghcr.io/jay7x/{{ .ProjectName }}:{{ .Version }}-arm64"
docker_manifests:
- name_template: "ghcr.io/jay7x/{{ .ProjectName }}:{{ .Version }}"
image_templates: &img_tmpl
- *img_amd64
- *img_arm64
- name_template: "ghcr.io/jay7x/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}"
image_templates: *img_tmpl
- name_template: "ghcr.io/jay7x/{{ .ProjectName }}:{{ .Major }}"
image_templates: *img_tmpl
- name_template: "ghcr.io/jay7x/{{ .ProjectName }}:latest"
image_templates: *img_tmpl