forked from itzg/mc-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
94 lines (92 loc) · 2.29 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
project_name: mc-router
release:
github:
owner: itzg
name: mc-router
before:
hooks:
- go mod download
brews:
- install: |
bin.install "mc-router"
builds:
- goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- arm
goarm:
- 6
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
main: ./cmd/mc-router
binary: mc-router
env:
- CGO_ENABLED=0
archives:
- id: tar_gz
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- LICENSE*
- README*
snapshot:
name_template: SNAPSHOT-{{ .ShortCommit }}
dockers:
- image_templates:
- "itzg/{{ .ProjectName }}:{{ .Version }}-amd64"
dockerfile: Dockerfile.release
goarch: amd64
build_flag_templates:
- --platform
- linux/amd64
- --load
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- image_templates:
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm64"
dockerfile: Dockerfile.release
goarch: arm64
build_flag_templates:
- --platform
- linux/arm64
- --load
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- image_templates:
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm32v6"
dockerfile: Dockerfile.release
goarch: arm
goarm: "6"
build_flag_templates:
- --platform
- linux/arm/v6
- --load
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
docker_manifests:
- name_template: "itzg/{{ .ProjectName }}:{{ .Version }}"
image_templates:
- "itzg/{{ .ProjectName }}:{{ .Version }}-amd64"
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm64"
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm32v6"
- name_template: "itzg/{{ .ProjectName }}:latest"
image_templates:
- "itzg/{{ .ProjectName }}:{{ .Version }}-amd64"
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm64"
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm32v6"
changelog:
filters:
exclude:
- '^ci:'
- '^docs:'
- '^misc:'
- '^test:'