Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 41 additions & 37 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
project_name: newrelic-cli
version: 2

before:
hooks:
Expand Down Expand Up @@ -36,17 +37,19 @@ release:

archives:
- id: "default"
builds:
- newrelic
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
ids: [newrelic]
# https://goreleaser.com/deprecations/#archivesreplacements - the following is a recommended replacement to "replacements"
name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
format_overrides:
- goos: windows
format: zip
formats: ['zip']
files:
- CHANGELOG.md
- LICENSE
Expand Down Expand Up @@ -78,7 +81,7 @@ dockers:
- "--pull"
- "--label=repository=http://github.com/newrelic/newrelic-cli"
- "--label=homepage=https://developer.newrelic.com/"
- "--label=maintainer=Developer Toolkit <opensource@newrelic.com>"
- "--label=maintainer=Developer Toolkit <developer-toolkit@newrelic.com>"
- "--platform=linux/amd64"
goarch: amd64
- dockerfile: build/package/Dockerfile
Expand All @@ -91,7 +94,7 @@ dockers:
- "--pull"
- "--label=repository=http://github.com/newrelic/newrelic-cli"
- "--label=homepage=https://developer.newrelic.com/"
- "--label=maintainer=Developer Toolkit <opensource@newrelic.com>"
- "--label=maintainer=Developer Toolkit <developer-toolkit@newrelic.com>"
- "--platform=linux/arm64"
goarch: arm64

Expand All @@ -110,8 +113,8 @@ docker_manifests:
- "newrelic/cli:latest-arm64"

# Uses git-chglog output from release flow
changelog:
skip: false
#changelog:
# skip: false

# snapcrafts:
# - id: newrelic
Expand Down Expand Up @@ -151,36 +154,37 @@ changelog:
# # https://snapcraft.io/docs/reference/interfaces.
# plugs: ["home", "network"]

scoop:
bucket:
owner: newrelic
name: newrelic-cli
commit_author:
name: nr-developer-toolkit
email: developer-toolkit@newrelic.com
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
scoops:
- repository:
name: newrelic-cli
owner: newrelic
commit_author:
name: nr-developer-toolkit
email: developer-toolkit@newrelic.com
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
# https://goreleaser.com/deprecations/#nfpmsreplacements : the following is a recommended replacement to "replacements"
file_name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
ids: [newrelic]
vendor: New Relic
homepage: https://github.com/newrelic/newrelic-cli
maintainer: opensource@newrelic.com
maintainer: developer-toolkit@newrelic.com
description: |
The New Relic CLI is an officially supported command line interface for New
Relic, released as part of the Developer Toolkit.
Expand Down
2 changes: 1 addition & 1 deletion build/release.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
RELEASE_SCRIPT ?= ./scripts/release.sh

GOTOOLS += github.com/goreleaser/goreleaser
GOTOOLS += github.com/goreleaser/goreleaser/v2

REL_CMD ?= goreleaser
DIST_DIR ?= ./dist
Expand Down
Loading
Loading