-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser-release.yml
237 lines (237 loc) · 7.37 KB
/
.goreleaser-release.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
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
project_name: mytoken-server
before:
hooks:
- go mod tidy
dist: results
builds:
- id: server
main: ./cmd/mytoken-server
binary: mytoken-server
env:
- CGO_ENABLED=0
goos:
- linux
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
- id: setup
main: ./cmd/mytoken-server/mytoken-setup
binary: mytoken-setup
env:
- CGO_ENABLED=0
goos:
- linux
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
- id: migratedb
main: ./cmd/mytoken-server/mytoken-migratedb
binary: mytoken-migratedb
env:
- CGO_ENABLED=0
goos:
- linux
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
- id: notifier-server
main: ./cmd/mytoken-server/mytoken-notifier-server
binary: mytoken-notifier-server
env:
- CGO_ENABLED=0
goos:
- linux
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
archives:
- name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{ if eq .Os "darwin" }}macOS{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "386" }}32-bit{{- else if eq .Arch "amd64" }}64-bit{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
nfpms:
- id: server-pkg
package_name: mytoken-server
file_name_template: >-
{{ .PackageName }}_{{ .Version }}_
{{- if eq .Arch "386" }}i386{{- else }}{{ .Arch }}{{ end }}
builds:
- server
homepage: https://mytoken-docs.data.kit.edu/server
maintainer: Gabriel Zachmann <[email protected]>
description: Mytoken is a central web service with the goal to easily obtain OpenID Connect access tokens across devices.
license: MIT
formats:
- deb
- rpm
release: "1"
section: misc
bindir: /usr/bin
contents:
- src: config/example-config.yaml
dst: /etc/mytoken/example-config.yaml
type: config
- src: config/mytoken.service
dst: /etc/systemd/system/mytoken.service
- dst: /var/log/mytoken
type: dir
overrides:
rpm:
file_name_template: >-
{{ .PackageName }}-{{ .Version }}.
{{- if eq .Arch "386" }}i386{{- else if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}
- id: setup-pkg
package_name: mytoken-server-setup
file_name_template: >-
{{ .PackageName }}_{{ .Version }}_
{{- if eq .Arch "386" }}i386{{- else }}{{ .Arch }}{{ end }}
builds:
- setup
homepage: https://mytoken-docs.data.kit.edu/server
maintainer: Gabriel Zachmann <[email protected]>
description: A setup utility for the mytoken-server
license: MIT
formats:
- deb
- rpm
release: "1"
section: misc
bindir: /usr/bin
overrides:
rpm:
file_name_template: >-
{{ .PackageName }}-{{ .Version }}.
{{- if eq .Arch "386" }}i386{{- else if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}
- id: migratedb-pkg
package_name: mytoken-server-migratedb
file_name_template: >-
{{ .PackageName }}_{{ .Version }}_
{{- if eq .Arch "386" }}i386{{- else }}{{ .Arch }}{{ end }}
builds:
- migratedb
homepage: https://mytoken-docs.data.kit.edu/server
maintainer: Gabriel Zachmann <[email protected]>
description: A tool for migrating the database between versions
license: MIT
dependencies:
- mariadb-client
formats:
- deb
- rpm
release: "1"
section: misc
bindir: /usr/bin
overrides:
rpm:
dependencies:
- MariaDB-client
file_name_template: >-
{{ .PackageName }}-{{ .Version }}.
{{- if eq .Arch "386" }}i386{{- else if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}
- id: notifier-pkg
package_name: mytoken-notifier-server
file_name_template: >-
{{ .PackageName }}_{{ .Version }}_
{{- if eq .Arch "386" }}i386{{- else }}{{ .Arch }}{{ end }}
builds:
- notifier-server
homepage: https://mytoken-docs.data.kit.edu/server
maintainer: Gabriel Zachmann <[email protected]>
description: A standalone notifier server for mytoken notifications
license: MIT
formats:
- deb
- rpm
release: "1"
section: misc
bindir: /usr/bin
overrides:
rpm:
file_name_template: >-
{{ .PackageName }}-{{ .Version }}.
{{- if eq .Arch "386" }}i386{{- else if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}
dockers:
- goos: linux
goarch: amd64
ids:
- server
image_templates:
- "oidcmytoken/mytoken-server:latest"
- "oidcmytoken/mytoken-server:{{ .Tag }}"
- "oidcmytoken/mytoken-server:v{{ .Major }}"
- "oidcmytoken/mytoken-server:v{{ .Major }}.{{ .Minor }}"
dockerfile: cmd/mytoken-server/Dockerfile
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title=mytoken-server"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- goos: linux
goarch: amd64
ids:
- setup
image_templates:
- "oidcmytoken/mytoken-setup:latest"
- "oidcmytoken/mytoken-setup:{{ .Tag }}"
- "oidcmytoken/mytoken-setup:v{{ .Major }}"
- "oidcmytoken/mytoken-setup:v{{ .Major }}.{{ .Minor }}"
dockerfile: cmd/mytoken-server/mytoken-setup/Dockerfile
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title=mytoken-setup"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- goos: linux
goarch: amd64
ids:
- migratedb
image_templates:
- "oidcmytoken/mytoken-migratedb:latest"
- "oidcmytoken/mytoken-migratedb:{{ .Tag }}"
- "oidcmytoken/mytoken-migratedb:v{{ .Major }}"
- "oidcmytoken/mytoken-migratedb:v{{ .Major }}.{{ .Minor }}"
dockerfile: cmd/mytoken-server/mytoken-migratedb/Dockerfile
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title=mytoken-migratedb"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- goos: linux
goarch: amd64
ids:
- notifier-server
image_templates:
- "oidcmytoken/mytoken-notifier-server:latest"
- "oidcmytoken/mytoken-notifier-server:{{ .Tag }}"
- "oidcmytoken/mytoken-notifier-server:v{{ .Major }}"
- "oidcmytoken/mytoken-notifier-server:v{{ .Major }}.{{ .Minor }}"
dockerfile: cmd/mytoken-server/mytoken-notifier-server/Dockerfile
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title=mytoken-notifier-server"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
release:
prerelease: auto
draft: true
github:
owner: oidc-mytoken
name: server
name_template: "{{.ProjectName}} {{.Version}}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'