forked from twpayne/chezmoi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
94 lines (86 loc) · 2.08 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
project_name: chezmoi
before:
hooks:
- go mod download
builds:
- binary: chezmoi
env:
- CGO_ENABLED=0
ldflags: "-s -w -X github.com/twpayne/chezmoi/cmd.version={{ .Version }} -X github.com/twpayne/chezmoi/cmd.commit={{ .Commit }} -X github.com/twpayne/chezmoi/cmd.date={{ .Date }}"
goos:
- linux
- darwin
- freebsd
- openbsd
# - dragonfly
# - netbsd
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- ''
ignore:
- goos: darwin
goarch: 386
- goos: linux
goarch: amd64
- binary: chezmoi
ldflags: "-s -w -X github.com/twpayne/chezmoi/cmd.version={{ .Version }} -X github.com/twpayne/chezmoi/cmd.commit={{ .Commit }} -X github.com/twpayne/chezmoi/cmd.date={{ .Date }}"
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
## generate .tar.gz archives
archive:
replacements:
386: i386
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
## generate RPM and DEB packages
nfpm:
vendor: "Tom Payne <twpayne@gmail.com>"
homepage: "https://github.com/twpayne/chezmoi"
maintainer: Tom Payne <twpayne@gmail.com>
description: "Manage your dotfiles securely across multiple machines."
license: MIT
formats:
- deb
- rpm
overrides:
rpm:
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Env.TRAVIS_BUILD_NUMBER }}-{{ .Arch }}"
replacements:
amd64: x86_64
386: i686
arm: armhfp
arm64: aarch64
deb:
name_template: "{{ .ProjectName }}_{{ .Version }}-{{ .Env.TRAVIS_BUILD_NUMBER }}_{{ .Os }}_{{ .Arch }}"
replacements:
386: i386
arm: armel
# generate a homebrew formula and push to github.com/twpayne/homebrew-taps
brew:
github:
owner: twpayne
name: homebrew-taps
commit_author:
name: Tom Payne
email: twpayne@gmail.com
folder: Formula
homepage: "https://github.com/twpayne/chezmoi"
description: "Manage your dotfiles securely across multiple machines."