-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy path.goreleaser.yaml
105 lines (105 loc) · 2.44 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
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w
goos:
- linux
- windows
- darwin
goarch:
- amd64
- 386
- arm
- arm64
- mips
- mipsle
- mips64
- mips64le
goarm:
- 5
- 6
- 7
gomips:
- hardfloat
- softfloat
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
dockers:
- use: buildx
goarch: amd64
build_flag_templates:
- "--platform=linux/amd64"
image_templates:
- "gaoyb7/115drive-webdav:{{ .Tag }}-amd64"
- use: buildx
goarch: 386
build_flag_templates:
- "--platform=linux/386"
image_templates:
- "gaoyb7/115drive-webdav:{{ .Tag }}-i386"
- use: buildx
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64/v8"
image_templates:
- "gaoyb7/115drive-webdav:{{ .Tag }}-arm64v8"
- use: buildx
goarch: arm
goarm: 7
build_flag_templates:
- "--platform=linux/arm/v7"
image_templates:
- "gaoyb7/115drive-webdav:{{ .Tag }}-armv7"
- use: buildx
goarch: arm
goarm: 6
build_flag_templates:
- "--platform=linux/arm/v6"
image_templates:
- "gaoyb7/115drive-webdav:{{ .Tag }}-armv6"
docker_manifests:
- name_template: gaoyb7/115drive-webdav:{{ .Tag }}
image_templates:
- gaoyb7/115drive-webdav:{{ .Tag }}-amd64
- gaoyb7/115drive-webdav:{{ .Tag }}-i386
- gaoyb7/115drive-webdav:{{ .Tag }}-arm64v8
- gaoyb7/115drive-webdav:{{ .Tag }}-armv7
- gaoyb7/115drive-webdav:{{ .Tag }}-armv6
- name_template: gaoyb7/115drive-webdav:latest
image_templates:
- gaoyb7/115drive-webdav:{{ .Tag }}-amd64
- gaoyb7/115drive-webdav:{{ .Tag }}-i386
- gaoyb7/115drive-webdav:{{ .Tag }}-arm64v8
- gaoyb7/115drive-webdav:{{ .Tag }}-armv7
- gaoyb7/115drive-webdav:{{ .Tag }}-armv6
snapshot:
name_template: "{{ incpatch .Tag }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'