forked from saltbo/zpan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
74 lines (69 loc) · 1.69 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
dist: ./build/release
before:
hooks:
- go mod download
builds:
- id: server
main: ./main.go
binary: bin/{{ .ProjectName }}
ldflags:
- -s -w
- -X github.com/saltbo/{{ .ProjectName }}/cmd.release={{.Version}}
- -X github.com/saltbo/{{ .ProjectName }}/cmd.commit={{.Commit}}
- -X github.com/saltbo/{{ .ProjectName }}/cmd.repo={{.GitURL}}
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- arm
goarm:
- "6"
- "7"
release:
prerelease: auto
footer: |
## Docker Images
- `saltbo/{{ .ProjectName }}:{{ .Version }}`
dockers:
- image_templates:
- "saltbo/{{ .ProjectName }}:{{ .Version }}"
# - "saltbo/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}"
# - "saltbo/{{ .ProjectName }}:latest"
archives:
- name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: true
format: tar.gz
format_overrides: # archive as zip on Windows
- goos: windows
format: zip
files:
- LICENSE
- README.md
- CHANGELOG.md
- deployments/*
- install.sh
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: desc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
- file_name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
homepage: https://github.com/saltbo/{{ .ProjectName }}
description: A self-hosted cloud disk base on the cloud storage
maintainer: Ambor <[email protected]>
license: MIT
formats:
- deb
- rpm
dependencies:
- git
recommends:
- golang