-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
81 lines (74 loc) · 1.73 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
project_name: developer-toolkit-template-go
env:
- GO111MODULE=on
before:
hooks:
- go mod download
# Libraries with no bins, enable this
# otherwise remove build and use a 'builds' section
build:
skip: true
#builds:
# -
# id: "default"
# goos:
# - linux
# goarch:
# - amd64
# ignore:
# - goos: linux
# goarch: amd64
# -
# id: newrelic
# dir: cmd/newrelic
# binary: newrelic
# env:
# - CGO_ENABLED=0
# goos:
# - linux
# - darwin
# - windows
# goarch:
# - amd64
# ldflags:
# - -s -w -X main.version={{.Version}} -X main.AppName={{.Binary}}
# -X github.com/newrelic/developer-toolkit-template-go/internal/version.Version={{.Version}}
release:
#prerelease: true
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
#
#dockers:
# -
# dockerfile: build/package/Dockerfile
# image_templates:
# - 'newrelic/developer-toolkit-template-go:{{ .Tag }}'
# - 'newrelic/developer-toolkit-template-go:v{{ .Major }}.{{ .Minor }}'
# - 'newrelic/developer-toolkit-template-go:latest'
# binaries:
# - newrelic
# build_flag_templates:
# - "--pull"
# - "--label=repository=http://github.com/newrelic/developer-toolkit-template-go"
# - "--label=homepage=https://developer.newrelic.com/"
# - "--label=maintainer=Developer Toolkit <opensource@newrelic.com>"
# Already using git-chglog
changelog:
skip: true