-
Notifications
You must be signed in to change notification settings - Fork 21
/
.goreleaser.yml
59 lines (52 loc) · 1.18 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
project_name: newrelic-kubernetes-operator
env:
- GO111MODULE=on
before:
hooks:
- go mod download
builds:
-
id: newrelic
dir: .
binary: manager
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
ldflags:
- -s -w -X main.version={{.Version}} -X main.appName={{.Binary}}
release:
# Mark as a pre-release for now
prerelease: true
name_template: "{{.ProjectName}} v{{.Version}}"
archives:
-
id: "default"
builds:
- newrelic
replacements:
linux: Linux
amd64: x86_64
files:
- CHANGELOG.md
- LICENSE
- README.md
dockers:
-
dockerfile: build/package/Dockerfile
image_templates:
- 'newrelic/kubernetes-operator:{{ .Tag }}'
- 'newrelic/kubernetes-operator:v{{ .Major }}.{{ .Minor }}'
- 'newrelic/kubernetes-operator:latest'
binaries:
- manager
build_flag_templates:
- "--pull"
- "--label=repository=http://github.com/newrelic/newrelic-kubernetes-operator"
- "--label=homepage=https://developer.newrelic.com/"
- "--label=maintainer=Developer Toolkit <[email protected]>"
# Already using git-chglog
changelog:
skip: true