-
Notifications
You must be signed in to change notification settings - Fork 17
/
.goreleaser.yml
80 lines (78 loc) · 2.14 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
project_name: kr8
version: 2
before:
hooks:
- go mod download
builds:
- env: [CGO_ENABLED=0]
goos:
- linux
- darwin
goarch:
- amd64
main: .
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
binary: kr8
archives:
- format: tar.gz
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
files:
- LICENSE*
- README*
- CHANGELOG*
- scripts/*
- docs/*
snapshot:
name_template: SNAPSHOT-{{ .Commit }}
dist: dist
dockers:
-
image_templates:
- 'ghcr.io/apptio/kr8:{{ .Tag }}'
- 'ghcr.io/apptio/kr8:latest'
dockerfile: Dockerfile-goreleaser
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
nfpms:
-
vendor: Apptio TechOps
homepage: "https://github.com/apptio/kr8"
maintainer: 'Apptio, an IBM Company'
description: "Opinionated configuration management tool for Kubernetes Cluster"
license: MIT
formats:
- rpm
- deb
bindir: /usr/local/bin
brews:
- name: kr8
url_template: "https://github.com/apptio/kr8/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
url_headers:
- "Accept: application/octet-stream"
- 'Authorization: bearer #{ENV["HOMEBREW_TAP_GITHUB_TOKEN"]}'
download_strategy: CurlDownloadStrategy
repository:
owner: Apptio
name: homebrew-tap
branch: main
pull_request:
enabled: true
git:
url: '[email protected]:apptio/homebrew-tap.git'
private_key: '{{ .Env.PRIVATE_KEY_PATH }}'
commit_author:
name: release
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "http://apptio.github.io/kr8"
description: "Opinionated configuration management tool for Kubernetes Cluster"
license: MIT
install: |
bin.install "kr8"
bin.install "scripts/kr8-helpers"
dependencies:
- helm
- jsonnet
- go-task/tap/go-task