Repository navigation
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
189 lines (176 loc) · 3.89 KB
/
Copy path.goreleaser.yaml
File metadata and controls
189 lines (176 loc) · 3.89 KB
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
version: 2
env:
- BACKREST_BUILD_VERSION={{.Version}}
before:
hooks:
- go mod tidy
- pnpm --prefix webui install
- sh -c "GOOS=linux BACKREST_BUILD_VERSION={{.Version}} go generate ./..."
- sh -c "GOOS=windows BACKREST_BUILD_VERSION={{.Version}} go generate ./..."
builds:
- id: other
main: ./cmd/backrest
binary: backrest
env:
- CGO_ENABLED=0
goos:
- darwin
- freebsd
goarch:
- amd64
- arm64
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
- id: linux
main: ./cmd/backrest
binary: backrest
env:
- CGO_ENABLED=0
tags:
- tray
goos:
- linux
goarch:
- amd64
- arm64
- arm
- "386"
goarm:
- 6
- 7
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
- id: docker-entrypoint
main: ./cmd/docker-entrypoint
binary: docker-entrypoint
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
- arm
- "386"
goarm:
- 6
- 7
ldflags:
- -s -w
- id: windows
main: ./cmd/backrest
binary: backrest
env:
- CGO_ENABLED=1
tags:
- tray
goos:
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -H windowsgui
archives:
- id: default
ids:
- other
- linux
- windows
formats:
- tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
formats: zip
files:
- install.sh
- uninstall.sh
- LICENSE
- README.md
- CHANGELOG.md
allow_different_binary_count: true
dockers_v2:
- id: alpine
images:
- "garethgeorge/backrest"
- "ghcr.io/garethgeorge/backrest"
tags:
- latest
- latest-alpine
- v{{ .Major }}
- v{{ .Major }}.{{ .Minor }}
- "{{ .Tag }}"
- "{{ .Tag }}-alpine"
dockerfile: Dockerfile.alpine
flags:
- "--pull"
# provenance attestations break the multi-arch manifest for armv6/armv7/386
- "--provenance=false"
ids:
- linux
- docker-entrypoint
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v6
- linux/arm/v7
- linux/386
- id: scratch
images:
- garethgeorge/backrest
- ghcr.io/garethgeorge/backrest
tags:
- scratch
- v{{ .Major }}-scratch
- v{{ .Major }}.{{ .Minor }}-scratch
- "{{ .Tag }}-scratch"
dockerfile: Dockerfile.scratch
flags:
- "--pull"
# provenance attestations break the multi-arch manifest for armv6/armv7/386
- "--provenance=false"
ids:
- linux
- docker-entrypoint
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v6
- linux/arm/v7
- linux/386
brews:
- name: backrest
ids:
- default
homepage: https://github.com/garethgeorge/backrest
description: "Backrest is a web UI and orchestrator for restic backup."
url_template: "https://github.com/garethgeorge/backrest/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
repository:
owner: garethgeorge
name: homebrew-backrest-tap
branch: main
token: "{{ .Env.HOMEBREW_GITHUB_TOKEN }}"
service: |
run opt_bin/"backrest"
error_log_path var/"log/backrest.log"
log_path var/"log/backrest.log"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
github:
owner: garethgeorge
name: backrest