-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.goreleaser.yaml
197 lines (189 loc) 路 6.86 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
env:
- CGO_ENABLED=0
before:
hooks:
- go mod download
snapshot:
name_template: "{{ incpatch .Version }}-next"
builds:
- main: ./cmd/avocado
id: avocado
binary: werbot_avocado_{{- title .Os }}_amd64
ldflags:
- -s -w
- -X github.com/werbot/werbot/internal/version/version={{.Version}}
- -X github.com/werbot/werbot/internal/version/gitCommit={{.ShortCommit}}
- -X github.com/werbot/werbot/internal/version/buildDate={{.Date}}
goos: [linux]
goarch: [amd64]
no_unique_dist_dir: true
- main: ./cmd/buffet
id: buffet
binary: werbot_buffet_{{- title .Os }}_amd64
ldflags:
- -s -w
- -X github.com/werbot/werbot/internal/version/version={{.Version}}
- -X github.com/werbot/werbot/internal/version/gitCommit={{.ShortCommit}}
- -X github.com/werbot/werbot/internal/version/buildDate={{.Date}}
goos: [linux]
goarch: [amd64]
no_unique_dist_dir: true
- main: ./cmd/ghost
id: ghost
binary: werbot_ghost_{{- title .Os }}_amd64
ldflags:
- -s -w
- -X github.com/werbot/werbot/internal/version/version={{.Version}}
- -X github.com/werbot/werbot/internal/version/gitCommit={{.ShortCommit}}
- -X github.com/werbot/werbot/internal/version/buildDate={{.Date}}
goos: [linux]
goarch: [amd64]
no_unique_dist_dir: true
- main: ./cmd/taco
id: taco
binary: werbot_taco_{{- title .Os }}_amd64
ldflags:
- -s -w
- -X github.com/werbot/werbot/internal/version/version.version={{.Version}}
- -X github.com/werbot/werbot/internal/version/version.gitCommit={{.ShortCommit}}
- -X github.com/werbot/werbot/internal/version/version.buildDate={{.Date}}
goos: [linux]
goarch: [amd64]
no_unique_dist_dir: true
archives:
- id: avocado
builds: [avocado]
name_template: "{{ .Binary }}"
format: binary
- id: buffet
builds: [buffet]
name_template: "{{ .Binary }}"
format: binary
- id: ghost
builds: [ghost]
name_template: "{{ .Binary }}"
format: binary
- id: taco
builds: [taco]
name_template: "{{ .Binary }}"
format: binary
dockers:
- ids: [avocado]
dockerfile: .goreleaser/Dockerfile.avocado
image_templates:
- "ghcr.io/werbot/avocado:latest"
- "ghcr.io/werbot/avocado:{{ .Tag }}"
build_flag_templates:
- --pull
- --label=org.opencontainers.image.created={{.Date}}
- --label=org.opencontainers.image.revision={{.ShortCommit}}
- --label=org.opencontainers.image.version={{.Version}}
- --label=org.opencontainers.image.title=avocado
- --label=org.opencontainers.image.description=馃 avocado - worker server
- --label=org.opencontainers.image.vendor=Werbot, Inc.
- --label=org.opencontainers.image.authors=info@werbot.com
- --label=org.opencontainers.image.licenses=Business Source License 1.1
- --label=org.opencontainers.image.url={{.GitURL}}
- --label=org.opencontainers.image.documentation={{.GitURL}}
- --label=org.opencontainers.image.source={{replace .GitURL ".git" "" }}
- ids: [buffet]
dockerfile: .goreleaser/Dockerfile.buffet
image_templates:
- "ghcr.io/werbot/buffet:latest"
- "ghcr.io/werbot/buffet:{{ .Tag }}"
build_flag_templates:
- --pull
- --label=org.opencontainers.image.created={{.Date}}
- --label=org.opencontainers.image.revision={{.ShortCommit}}
- --label=org.opencontainers.image.version={{.Version}}
- --label=org.opencontainers.image.title=buffet
- --label=org.opencontainers.image.description=馃嵄 buffet - gRPC server
- --label=org.opencontainers.image.vendor=Werbot, Inc.
- --label=org.opencontainers.image.authors=info@werbot.com
- --label=org.opencontainers.image.licenses=Business Source License 1.1
- --label=org.opencontainers.image.url={{.GitURL}}
- --label=org.opencontainers.image.documentation={{.GitURL}}
- --label=org.opencontainers.image.source={{replace .GitURL ".git" "" }}
- ids: [ghost]
dockerfile: .goreleaser/Dockerfile.ghost
image_templates:
- "ghcr.io/werbot/ghost:latest"
- "ghcr.io/werbot/ghost:{{ .Tag }}"
build_flag_templates:
- --pull
- --label=org.opencontainers.image.created={{.Date}}
- --label=org.opencontainers.image.revision={{.ShortCommit}}
- --label=org.opencontainers.image.version={{.Version}}
- --label=org.opencontainers.image.title=ghost
- --label=org.opencontainers.image.description=馃懟 ghost - master microservice
- --label=org.opencontainers.image.vendor=Werbot, Inc.
- --label=org.opencontainers.image.authors=info@werbot.com
- --label=org.opencontainers.image.licenses=Business Source License 1.1
- --label=org.opencontainers.image.url={{.GitURL}}
- --label=org.opencontainers.image.documentation={{.GitURL}}
- --label=org.opencontainers.image.source={{replace .GitURL ".git" "" }}
- ids: [taco]
dockerfile: .goreleaser/Dockerfile.taco
image_templates:
- "ghcr.io/werbot/taco:latest"
- "ghcr.io/werbot/taco:{{ .Tag }}"
build_flag_templates:
- --pull
- --label=org.opencontainers.image.created={{.Date}}
- --label=org.opencontainers.image.revision={{.ShortCommit}}
- --label=org.opencontainers.image.version={{.Version}}
- --label=org.opencontainers.image.title=taco
- --label=org.opencontainers.image.description=馃尞 taco - public API server
- --label=org.opencontainers.image.vendor=Werbot, Inc.
- --label=org.opencontainers.image.authors=info@werbot.com
- --label=org.opencontainers.image.licenses=Business Source License 1.1
- --label=org.opencontainers.image.url={{.GitURL}}
- --label=org.opencontainers.image.documentation={{.GitURL}}
- --label=org.opencontainers.image.source={{replace .GitURL ".git" "" }}
extra_files:
- cmd/taco/templates
upx:
- enabled: true
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
filters:
exclude:
- init
- "^.*?ci:"
- "^.*?test:"
- "^.*?build(deps):"
- "^.*?build:"
- "README"
- "Up"
- "merge conflict"
- Bump
- Small fix
- Update
- Updating
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
groups:
- title: Dependency updates
regexp: '^.*?(feat|fix)\(deps\)!?:.+$'
order: 300
- title: "New Features"
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: "Security updates"
regexp: '^.*?sec(\([[:word:]]+\))??!?:.+$'
order: 150
- title: "Bug fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 200
- title: "Documentation updates"
regexp: ^.*?doc(\([[:word:]]+\))??!?:.+$
order: 400
- title: "Build process updates"
regexp: ^.*?build(\([[:word:]]+\))??!?:.+$
order: 400
- title: Other work
order: 9999