-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
65 lines (58 loc) · 1.69 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
# To test this configuration locally, run:
# goreleaser release --clean --skip=publish --skip=validate --skip=homebrew
#
# The `--skip=homebrew` is necessary because the `brews` section is templated
# out with substitutions that rely on the GitHub Actions CI environment. To
# test the generation of the homebrew tap file, remove the skip flag and either
# setup the environment to have necessary keys, or temporarily refactor the
# brews config with hardcoded values.
version: 2
project_name: nrlv
before:
hooks:
- go mod tidy
builds:
- main: .
binary: nrlv
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ldflags: |
-s -w
-X github.com/newrelic/node-log-viewer/internal/misc.versionString={{.Version}}
-X github.com/newrelic/node-log-viewer/internal/misc.commitHash={{.FullCommit}}
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
- name: node-log-viewer
homepage: https://github.com/newrelic/node-log-viewer
commit_author:
name: "{{ .Env.ACTOR }}"
email: "{{ .Env.ACTOR_EMAIL }}"
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
directory: Formula
description: "New Relic log viewer for Node.js agent logs"
license: "Apache-2.0"
skip_upload: auto
repository:
owner: newrelic
name: homebrew-agents
branch: "node-log-viewer.{{ .Env.ACTOR }}.{{ .Tag }}"
token: "{{ .Env.NODE_AGENT_GH_TOKEN }}"
pull_request:
enabled: true
draft: false