-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
88 lines (82 loc) · 1.81 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
version: 2
before:
hooks:
- go mod tidy
- go install github.com/vektra/mockery/[email protected]
- mockery --config=.mockery.yaml
builds:
- id: "asbackup"
main: cmd/asbackup/main.go
binary: "asbackup"
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X 'main.appVersion={{.Version}}' -X 'main.commitHash={{.Commit}}'
- id: "asrestore"
main: cmd/asrestore/main.go
binary: "asrestore"
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X 'main.appVersion={{.Version}}' -X 'main.commitHash={{.Commit}}'
archives:
- id: "asbackup"
format: tar.gz
name_template: >-
{{ .Binary }}_{{ .Version }}_
{{- 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
format: zip
files:
- LICENSE
builds:
- "asbackup"
- id: "asrestore"
format: tar.gz
name_template: >-
{{ .Binary }}_{{ .Version }}_
{{- 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
format: zip
files:
- LICENSE
builds:
- "asrestore"
release:
prerelease: true
make_latest: false
replace_existing_artifacts: true
mode: prepend
header: |
## Release {{ .Version }} ({{ .Date }})
- asbackup (CLI tool)
- asrestore (CLI tool)
- backup-go (library)
changelog:
disable: true
checksum:
name_template: "checksums.txt"