-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
75 lines (75 loc) · 2.02 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
project_name: chart-releaser
snapshot:
name_template: '{{ .Tag }}-next'
checksum:
name_template: '{{ .ProjectName }}-checksums-{{ .Tag }}.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
release:
github:
owner: edaniszewski
name: chart-releaser
draft: false
prerelease: auto
name_template: '{{ .Version }}'
before:
hooks:
- go mod download
builds:
-
main: ./cmd/chart_releaser.go
binary: chart-releaser
env:
- CGO_ENABLED=0
ldflags:
- -w
- -X github.com/edaniszewski/chart-releaser/pkg.BuildDate={{ .Date }}
- -X github.com/edaniszewski/chart-releaser/pkg.Commit={{ .ShortCommit }}
- -X github.com/edaniszewski/chart-releaser/pkg.Tag={{ .Tag }}
- -X github.com/edaniszewski/chart-releaser/pkg.GoVersion={{ .Env.GO_VERSION }}
- -X github.com/edaniszewski/chart-releaser/pkg.Version={{ .Version }}
goos:
- linux
- darwin
goarch:
- amd64
dockers:
-
goos: linux
goarch: amd64
binaries:
- chart-releaser
image_templates:
- 'chartreleaser/chart-releaser:{{ .Tag }}'
- 'chartreleaser/chart-releaser:{{ .Major }}'
- 'chartreleaser/chart-releaser:{{ .Major }}.{{ .Minor }}'
- 'chartreleaser/chart-releaser:latest'
build_flag_templates:
- '--label=org.label-schema.version={{ .Version }}'
- '--label=org.label-schema.build-date={{ .Date }}'
- '--label=org.label-schema.vcs-ref={{ .ShortCommit }}'
archives:
-
format: tar.gz
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
replacements:
darwin: darwin
linux: linux
brews:
-
github:
owner: edaniszewski
name: homebrew-tap
commit_author:
name: edaniszewski
email: '[email protected]'
homepage: 'https://github.com/edaniszewski/chart-releaser'
description: 'CI tool for automating Helm Chart version bumps on new app release'
test: |
system "#{bin}/chart-releaser version"