-
Notifications
You must be signed in to change notification settings - Fork 6
/
.goreleaser.yml
99 lines (88 loc) · 2.19 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
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
project_name: datamon
before:
hooks:
- go mod download
env:
- IMPORT_PATH=github.com/oneconcern/datamon/cmd/datamon/cmd
- CGO_ENABLED=0
builds:
- id: datamon
env: []
main: ./cmd/datamon/main.go
binary: datamon2
ldflags:
- '-s'
- '-w'
# TODO(frederic): for alpine static builds:
#- '-linkmode external'
#- '-extldflags \"-static\"'
- '-X "{{.Env.IMPORT_PATH}}.Version={{.Version}}"'
- '-X "{{.Env.IMPORT_PATH}}.BuildDate={{.Date}}"'
- '-X "{{.Env.IMPORT_PATH}}.GitCommit={{.ShortCommit}}"'
goos: [ linux, darwin ]
goarch: [ amd64 ]
- id: migrate
env: []
main: ./cmd/backup2blobs/main.go
binary: migrate
goos: [ linux ]
goarch: [ amd64 ]
hooks:
post: ./hack/releaser/post-build.sh migrate
- id: datamon_metrics
env: []
main: ./cmd/metrics/main.go
binary: datamon_metrics
goos: [ linux ]
goarch: [ amd64 ]
hooks:
post: ./hack/releaser/post-build.sh datamon_metrics
archives:
- id: tools-release
builds:
- migrate
- datamon_metrics
name_template: '{{ .ProjectName }}-tools_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format: 'tar.gz'
# TODO(frederic): add release notes/changelog when we have one
files:
- LICENSE
- id: datamon-release
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
builds:
- datamon
format: 'tar.gz'
files:
- LICENSE
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-{{ .ShortCommit }}-snapshot"
changelog:
sort: asc
filters:
exclude:
#- '^Merge:'
- '^typo'
- '^docs:'
- '^test:'
release:
github:
owner: oneconcern
name: datamon
brews:
- name: datamon
ids:
- datamon-release
tap:
owner: oneconcern
name: homebrew-datamon
commit_author:
name: onecrobot
email: onecrobot@oneconcern.com
homepage: "https://github.com/oneconcern/datamon"
description: "A datascience tool to work with data at rest"
install: |
bin.install "datamon2"
test: |
system "#{bin}/datamon2", "version"