-
Notifications
You must be signed in to change notification settings - Fork 18
/
.goreleaser.yml
79 lines (65 loc) · 1.94 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
project_name: astartectl
version: 2
before:
hooks:
- go mod download
builds:
- id: astartectl
binary: astartectl
goos:
- linux
- darwin
- windows
env:
- CGO_ENABLED=0
archives:
- id: astartectl
# Package binaries only
files:
- none*
name_template: >-
{{ .ProjectName }}_{{ trimprefix .Version "v" }}_{{- if eq .Os "darwin" }}macOS{{- else }}{{ .Os }}{{ end }}_{{- if eq .Arch "amd64" }}x86_64{{- else if eq .Arch "386" }}i386{{- else }}{{ .Arch }}{{ end }}
# Deliver as a zip file on Windows
format_overrides:
- goos: windows
format: zip
nfpms:
# note that this is an array of nfpm configs
- id: astartectl
package_name: astartectl
file_name_template: >-
{{ .PackageName }}_{{ trimprefix .Version "v" }}_{{- if eq .Os "darwin" }}macOS{{- else }}{{ .Os }}{{ end }}_{{- if eq .Arch "amd64" }}x86_64{{- else if eq .Arch "386" }}i386{{- else }}{{ .Arch }}{{ end }}
vendor: SECO Mind
# Your app's homepage.
# Default is empty.
homepage: https://github.com/astarte-platform/astartectl
# Your app's maintainer (probably you).
# Default is empty.
maintainer: Astarte Developers <info@astarte-platform.org>
# Your app's description.
# Default is empty.
description: Command-line tool to manage Astarte Clusters.
# Your app's license.
# Default is empty.
license: Apache 2.0
# Formats to be generated.
formats:
- deb
- rpm
# Override default /usr/local/bin destination for binaries
bindir: /usr/bin
scripts:
postinstall: "scripts/postinstall.sh"
preremove: "scripts/preremove.sh"
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ .Tag }}-next"
release:
prerelease: auto
name_template: "astartectl {{.Version}}"
# Release as a draft, after review and changelog we'll release manually
draft: true
changelog:
# We have our own way to track changes
disable: true