forked from newrelic/newrelic-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
160 lines (148 loc) · 4.33 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
project_name: newrelic-cli
before:
hooks:
- go mod download
builds:
- id: newrelic
dir: cmd/newrelic
binary: newrelic
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- arm
goarm:
- 7
ignore: # go-ole is currently 32-bit only. Remove this when support is added
- goos: windows
goarch: arm
goarm: 7
- goos: windows
goarch: arm64
ldflags:
- -s -w -X main.version={{.Version}} -X main.appName={{.Binary}}
-X github.com/newrelic/newrelic-cli/internal/cli.version={{.Version}}
release:
name_template: "{{.ProjectName}} v{{.Version}}"
archives:
- id: "default"
builds:
- newrelic
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- CHANGELOG.md
- LICENSE
- README.md
signs:
- artifacts: all
args:
[
"-u",
"92ADA76A30A3F1FD",
"--output",
"${signature}",
"--detach-sign",
"${artifact}",
]
dockers:
- dockerfile: build/package/Dockerfile
image_templates:
- "newrelic/cli:{{ .Tag }}"
- "newrelic/cli:v{{ .Major }}.{{ .Minor }}"
- "newrelic/cli:latest"
build_flag_templates:
- "--pull"
- "--label=repository=http://github.com/newrelic/newrelic-cli"
- "--label=homepage=https://developer.newrelic.com/"
- "--label=maintainer=Developer Toolkit <[email protected]>"
# Uses git-chglog output from release flow
changelog:
skip: false
# snapcrafts:
# - id: newrelic
# builds:
# - newrelic
# name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
# replacements:
# darwin: Darwin
# linux: Linux
# windows: Windows
# 386: i386
# amd64: x86_64
# name: newrelic-cli
# publish: true
# summary: A project to consolidate some tools New Relic offers for managing resources.
# description: |
# The New Relic CLI is an officially supported command line interface for New
# Relic, released as part of the Developer Toolkit.
# # A guardrail to prevent you from releasing a snap to all your users before
# # it is ready.
# # `devel` will let you release only to the `edge` and `beta` channels in the
# # store. `stable` will let you release also to the `candidate` and `stable`
# # channels. More info about channels here:
# # https://snapcraft.io/docs/reference/channels
# grade: stable
# confinement: strict
# license: Apache-2.0
# base: core18
# apps:
# # The name of the app must be the same name as the binary built or the snapcraft name.
# newrelic:
# # If your app requires extra permissions to work outside of its default
# # confined space, declare them here.
# # You can read the documentation about the available plugs and the
# # things they allow:
# # https://snapcraft.io/docs/reference/interfaces.
# plugs: ["home", "network"]
scoop:
bucket:
owner: newrelic
name: newrelic-cli
commit_author:
name: nr-developer-toolkit
email: [email protected]
commit_msg_template: "chore(scoop): update for {{ .ProjectName }} version {{ .Tag }}"
homepage: https://github.com/newrelic/newrelic-cli
url_template: "https://github.com/newrelic/newrelic-cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
description: |
The New Relic CLI is an officially supported command line interface for New
Relic, released as part of the Developer Toolkit.
license: Apache-2.0
nfpms:
- id: newrelic
package_name: newrelic-cli
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- newrelic
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
vendor: New Relic
homepage: https://github.com/newrelic/newrelic-cli
maintainer: [email protected]
description: |
The New Relic CLI is an officially supported command line interface for New
Relic, released as part of the Developer Toolkit.
license: Apache 2.0
formats:
- deb
- rpm
bindir: /usr/local/bin
epoch: 1
release: 1