-
-
Notifications
You must be signed in to change notification settings - Fork 559
/
.goreleaser.yml
204 lines (204 loc) · 7.35 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
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
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: screego
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
- freebsd
- openbsd
goarch:
- "386"
- amd64
- arm
- arm64
- ppc64
- ppc64le
goarm:
- "6"
- "7"
flags:
- '-tags="netgo osusergo"'
ldflags:
- "-s"
- "-w"
- "-X main.version={{.Version}}"
- "-X main.commitHash={{.Commit}}"
- "-X main.mode=prod"
archives:
- files:
- LICENSE
- README.md
- screego.config.example
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{- if eq .Arch "386" }}i386{{- else }}{{ .Arch }}{{ end }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
- goos: windows
format: zip
checksum:
disable: true
changelog:
skip: true
dockers:
- use: buildx
goos: linux
goarch: amd64
goarm: ""
image_templates:
- "screego/server:amd64-unstable"
- "screego/server:amd64-{{ .RawVersion }}"
- "screego/server:amd64-{{ .Major }}"
- "ghcr.io/screego/server:amd64-unstable"
- "ghcr.io/screego/server:amd64-{{ .RawVersion }}"
- "ghcr.io/screego/server:amd64-{{ .Major }}"
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- use: buildx
goos: linux
goarch: "386"
goarm: ""
image_templates:
- "screego/server:386-unstable"
- "screego/server:386-{{ .RawVersion }}"
- "screego/server:386-{{ .Major }}"
- "ghcr.io/screego/server:386-unstable"
- "ghcr.io/screego/server:386-{{ .RawVersion }}"
- "ghcr.io/screego/server:386-{{ .Major }}"
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/386"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- use: buildx
goos: linux
goarch: arm64
goarm: ""
image_templates:
- "screego/server:arm64-unstable"
- "screego/server:arm64-{{ .RawVersion }}"
- "screego/server:arm64-{{ .Major }}"
- "ghcr.io/screego/server:arm64-unstable"
- "ghcr.io/screego/server:arm64-{{ .RawVersion }}"
- "ghcr.io/screego/server:arm64-{{ .Major }}"
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- use: buildx
goos: linux
goarch: arm
goarm: 7
image_templates:
- "screego/server:armv7-unstable"
- "screego/server:armv7-{{ .RawVersion }}"
- "screego/server:armv7-{{ .Major }}"
- "ghcr.io/screego/server:armv7-unstable"
- "ghcr.io/screego/server:armv7-{{ .RawVersion }}"
- "ghcr.io/screego/server:armv7-{{ .Major }}"
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/arm/v7"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- use: buildx
goos: linux
goarch: arm
goarm: 6
image_templates:
- "screego/server:armv6-unstable"
- "screego/server:armv6-{{ .RawVersion }}"
- "screego/server:armv6-{{ .Major }}"
- "ghcr.io/screego/server:armv6-unstable"
- "ghcr.io/screego/server:armv6-{{ .RawVersion }}"
- "ghcr.io/screego/server:armv6-{{ .Major }}"
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/arm/v6"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- use: buildx
goos: linux
goarch: ppc64le
goarm: ""
image_templates:
- "screego/server:ppc64le-unstable"
- "screego/server:ppc64le-{{ .RawVersion }}"
- "screego/server:ppc64le-{{ .Major }}"
- "ghcr.io/screego/server:ppc64le-unstable"
- "ghcr.io/screego/server:ppc64le-{{ .RawVersion }}"
- "ghcr.io/screego/server:ppc64le-{{ .Major }}"
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/ppc64le"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
docker_manifests:
- name_template: "ghcr.io/screego/server:unstable"
image_templates:
- "ghcr.io/screego/server:amd64-unstable"
- "ghcr.io/screego/server:386-unstable"
- "ghcr.io/screego/server:arm64-unstable"
- "ghcr.io/screego/server:armv7-unstable"
- "ghcr.io/screego/server:armv6-unstable"
- "ghcr.io/screego/server:ppc64le-unstable"
- name_template: "screego/server:unstable"
image_templates:
- "screego/server:amd64-unstable"
- "screego/server:386-unstable"
- "screego/server:arm64-unstable"
- "screego/server:armv7-unstable"
- "screego/server:armv6-unstable"
- "screego/server:ppc64le-unstable"
- name_template: "screego/server:{{ .RawVersion }}"
image_templates:
- "screego/server:amd64-{{ .RawVersion }}"
- "screego/server:386-{{ .RawVersion }}"
- "screego/server:arm64-{{ .RawVersion }}"
- "screego/server:armv7-{{ .RawVersion }}"
- "screego/server:armv6-{{ .RawVersion }}"
- "screego/server:ppc64le-{{ .RawVersion }}"
- name_template: "ghcr.io/screego/server:{{ .RawVersion }}"
image_templates:
- "ghcr.io/screego/server:amd64-{{ .RawVersion }}"
- "ghcr.io/screego/server:386-{{ .RawVersion }}"
- "ghcr.io/screego/server:arm64-{{ .RawVersion }}"
- "ghcr.io/screego/server:armv7-{{ .RawVersion }}"
- "ghcr.io/screego/server:armv6-{{ .RawVersion }}"
- "ghcr.io/screego/server:ppc64le-{{ .RawVersion }}"
- name_template: "screego/server:{{ .Major }}"
image_templates:
- "screego/server:amd64-{{ .Major }}"
- "screego/server:386-{{ .Major }}"
- "screego/server:arm64-{{ .Major }}"
- "screego/server:armv7-{{ .Major }}"
- "screego/server:armv6-{{ .Major }}"
- "screego/server:ppc64le-{{ .Major }}"
- name_template: "ghcr.io/screego/server:{{ .Major }}"
image_templates:
- "ghcr.io/screego/server:amd64-{{ .Major }}"
- "ghcr.io/screego/server:386-{{ .Major }}"
- "ghcr.io/screego/server:arm64-{{ .Major }}"
- "ghcr.io/screego/server:armv7-{{ .Major }}"
- "ghcr.io/screego/server:armv6-{{ .Major }}"
- "ghcr.io/screego/server:ppc64le-{{ .Major }}"