/
.goreleaser.yml
128 lines (118 loc) · 2.78 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
project_name: ktop
release:
name_template: "Version {{.Version}}"
github:
owner: vladimirvivien
name: ktop
before:
hooks:
- go mod tidy
builds:
- id: ktop
binary: ktop
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
goarch:
- amd64
- arm
- arm64
- riscv64
goarm:
- 7
ignore:
- goos: darwin
goarch: arm
- goos: darwin
goarch: riscv64
flags:
- -trimpath
ldflags: -s -w -X github.com/vladimirvivien/ktop/buildinfo.Version=v{{.Version}} -X github.com/vladimirvivien/ktop/buildinfo.GitSHA={{.FullCommit}}
- id: kubectl-ktop
binary: kubectl-ktop
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
goarch:
- amd64
- arm
- arm64
- riscv64
goarm:
- 7
ignore:
- goos: darwin
goarch: arm
- goos: darwin
goarch: riscv64
flags:
- -trimpath
ldflags: -s -w -X github.com/vladimirvivien/ktop/buildinfo.Version=v{{.Version}} -X github.com/vladimirvivien/ktop/buildinfo.GitSHA={{.FullCommit}}
archives:
- id: ktop
builds:
- ktop
name_template: '{{ .Binary }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm}}v{{ .Arm }}{{ end }}'
wrap_in_directory: false
format: tar.gz
files:
- LICENSE
- id: kubectl-ktop
builds:
- kubectl-ktop
name_template: '{{ .Binary }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm}}v{{ .Arm }}{{ end }}'
wrap_in_directory: false
format: tar.gz
files:
- LICENSE
checksum:
name_template: 'checksums.txt'
# kubectl krew plugin
krews:
-
ids:
- kubectl-ktop
name: ktop
homepage: https://github.com/vladimirvivien/ktop
description: |
This is a kubectl plugin for ktop, a top-like tool for displaying workload
metrics for a running Kubernetes cluster.
short_description: A top tool for kubernetes to display workload metrics
caveats: |
* By default, ktop displays metrics for resources in the default namespace. You can override this behavior
by providing a --namespace or use -A for all namespaces.
skip_upload: true
# Homebrew
brews:
- name: ktop
ids:
- ktop
tap:
owner: vladimirvivien
name: homebrew-oss-tools
commit_author:
name: vladimirvivien
email: vladimir.vivien@gmail.com
homepage: https://github.com/vladimirvivien/ktop
description: A top-like tool to display kubernetes workload metrics
license: "Apache-2.0 license"
skip_upload: auto
# ko-generated images
kos:
- id: ko-ktop
build: ktop
repository: ghcr.io/vladimirvivien/ktop
tags:
- '{{.Version}}'
- latest
bare: true
preserve_import_paths: false
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v7
- linux/riscv64